mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
style: remove redundant eslint suppressions (#1667)
This commit is contained in:
@@ -15,7 +15,6 @@ function plotLine(label, points, width, height) {
|
||||
|
||||
// Chart-class from chartjs
|
||||
const chart = new Chart(canvas, {
|
||||
// eslint-disable-line
|
||||
type: 'scatter',
|
||||
data: {
|
||||
datasets: [
|
||||
|
||||
@@ -22,13 +22,12 @@ describe('FindMinIterator', () => {
|
||||
})
|
||||
|
||||
test('given empty generator then min is undefined', () => {
|
||||
const src = function* () {} // eslint-disable-line
|
||||
const src = function* () {}
|
||||
expect(FindMinIterator(src())).toBeUndefined()
|
||||
})
|
||||
|
||||
test('given generator then min is found', () => {
|
||||
const src = function* () {
|
||||
// eslint-disable-line
|
||||
yield 1
|
||||
yield -1
|
||||
yield 0
|
||||
@@ -38,7 +37,6 @@ describe('FindMinIterator', () => {
|
||||
|
||||
test('given string generator then min string length is found', () => {
|
||||
const src = function* () {
|
||||
// eslint-disable-line
|
||||
yield 'abc'
|
||||
yield 'de'
|
||||
yield 'qwerty'
|
||||
|
||||
Reference in New Issue
Block a user