From 39db79b52bdd619c3b7a92f0d561ef9c0b48cfbc Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 1 Mar 2022 23:01:26 +0000 Subject: [PATCH] fix: lint? --- tests/mocha/.eslintrc.json | 2 +- tests/mocha/test_helpers/block_definitions.js | 2 +- tests/mocha/test_helpers/code_generation.js | 3 ++- tests/mocha/test_helpers/events.js | 2 +- tests/mocha/test_helpers/variables.js | 2 +- tests/mocha/test_helpers/warnings.js | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/mocha/.eslintrc.json b/tests/mocha/.eslintrc.json index 156a4d1ff..8ebf31ae6 100644 --- a/tests/mocha/.eslintrc.json +++ b/tests/mocha/.eslintrc.json @@ -5,7 +5,7 @@ }, "globals": { "chai": false, - "sinon": false, + "sinon": false }, "rules": { "no-unused-vars": ["off"], diff --git a/tests/mocha/test_helpers/block_definitions.js b/tests/mocha/test_helpers/block_definitions.js index e8dd44030..a30d7defe 100644 --- a/tests/mocha/test_helpers/block_definitions.js +++ b/tests/mocha/test_helpers/block_definitions.js @@ -182,4 +182,4 @@ function createRenderedBlock(workspaceSvg, type) { block.render(); return block; } -exports.createRenderedBlock = createRenderedBlock; \ No newline at end of file +exports.createRenderedBlock = createRenderedBlock; diff --git a/tests/mocha/test_helpers/code_generation.js b/tests/mocha/test_helpers/code_generation.js index b25dc1c09..72d520c7f 100644 --- a/tests/mocha/test_helpers/code_generation.js +++ b/tests/mocha/test_helpers/code_generation.js @@ -1,3 +1,4 @@ +/* eslint-disable valid-jsdoc */ /** * @license * Copyright 2020 Google LLC @@ -114,4 +115,4 @@ const runCodeGenerationTestSuites = (testSuites) => { runTestSuites(testSuites, createTestFn); }; -exports.runCodeGenerationTestSuites = runCodeGenerationTestSuites; \ No newline at end of file +exports.runCodeGenerationTestSuites = runCodeGenerationTestSuites; diff --git a/tests/mocha/test_helpers/events.js b/tests/mocha/test_helpers/events.js index b9aae376b..e69573318 100644 --- a/tests/mocha/test_helpers/events.js +++ b/tests/mocha/test_helpers/events.js @@ -201,4 +201,4 @@ function assertNthCallEventArgEquals(spy, n, instanceType, expectedProperties, const eventArg = nthCall.firstArg; assertXmlProperties_(eventArg, xmlProperties); } -exports.assertNthCallEventArgEquals = assertNthCallEventArgEquals; \ No newline at end of file +exports.assertNthCallEventArgEquals = assertNthCallEventArgEquals; diff --git a/tests/mocha/test_helpers/variables.js b/tests/mocha/test_helpers/variables.js index 0429c4372..f550e960b 100644 --- a/tests/mocha/test_helpers/variables.js +++ b/tests/mocha/test_helpers/variables.js @@ -22,4 +22,4 @@ function assertVariableValues(container, name, type, id) { chai.assert.equal(variable.type, type); chai.assert.equal(variable.getId(), id); } -exports.assertVariableValues = assertVariableValues; \ No newline at end of file +exports.assertVariableValues = assertVariableValues; diff --git a/tests/mocha/test_helpers/warnings.js b/tests/mocha/test_helpers/warnings.js index 01f581a96..cc8ca1819 100644 --- a/tests/mocha/test_helpers/warnings.js +++ b/tests/mocha/test_helpers/warnings.js @@ -71,4 +71,4 @@ function assertSingleDeprecationWarningCall(spy, functionName) { sinon.assert.calledOnce(spy); assertDeprecationWarningCall(spy.getCall(0), functionName); } -exports.assertSingleDeprecationWarningCall = assertSingleDeprecationWarningCall; \ No newline at end of file +exports.assertSingleDeprecationWarningCall = assertSingleDeprecationWarningCall;