From 298b93c0251ab05e259605d25d86a9968d5ab656 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Tue, 8 Jan 2019 11:54:57 -0800 Subject: [PATCH] Fix eslint errors with in-file comments --- tests/mocha/block_test.js | 4 ++-- tests/mocha/event_test.js | 3 ++- tests/mocha/field_variable_test.js | 3 +-- tests/mocha/test_helpers.js | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/mocha/block_test.js b/tests/mocha/block_test.js index 6400bccd2..12c7871ef 100644 --- a/tests/mocha/block_test.js +++ b/tests/mocha/block_test.js @@ -2,9 +2,9 @@ // Declare some globals to make eslint happier. // TODO: make an eslint config that applies to this directory and put this // configuration in that file, instead of inline. -/* global suite, test, chai, setup, teardown */ +/* global suite, test, setup, teardown */ -/* global assertFalse, assertTrue, assertNull, assertEquals */ +/* global assertNull, assertEquals */ suite('Blocks', function() { diff --git a/tests/mocha/event_test.js b/tests/mocha/event_test.js index a0c562fb7..fc836774f 100644 --- a/tests/mocha/event_test.js +++ b/tests/mocha/event_test.js @@ -5,7 +5,8 @@ /* global suite, test, setup, teardown */ /* global sinon */ -/* global assertNotNull, assertNotUndefined, assertNull, assertEquals, isEqualArrays, assertUndefined */ +/* global assertNotNull, assertNotUndefined, assertNull, assertEquals, + isEqualArrays, assertUndefined */ suite('Events', function() { setup(function() { this.workspace = new Blockly.Workspace(); diff --git a/tests/mocha/field_variable_test.js b/tests/mocha/field_variable_test.js index e92637ab0..622c5c1eb 100644 --- a/tests/mocha/field_variable_test.js +++ b/tests/mocha/field_variable_test.js @@ -3,9 +3,8 @@ // TODO: make an eslint config that applies to this directory and put this // configuration in that file, instead of inline. /* global suite, test, chai, setup, teardown */ -/* global sinon */ -/* global assertFalse, assertTrue, assertNull, assertEquals, isEqualArrays */ +/* global assertNull, assertEquals, isEqualArrays */ suite('Variable Fields', function() { function getMockBlock(workspace) { diff --git a/tests/mocha/test_helpers.js b/tests/mocha/test_helpers.js index f6743d827..0f0899231 100644 --- a/tests/mocha/test_helpers.js +++ b/tests/mocha/test_helpers.js @@ -1,5 +1,6 @@ /* global chai */ - +/* exported assertEquals, assertTrue, assertFalse, assertNull, assertNotNull, + isEqualArrays, assertUndefined, assertNotUndefined */ function _argumentsIncludeComments(expectedNumberOfNonCommentArgs, args) { return args.length == expectedNumberOfNonCommentArgs + 1; }