Skip to content

Commit

Permalink
chore: run eslint--fix for no-var rule in tests/mocha (google#5637)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-fenichel committed Oct 25, 2021
1 parent f70032a commit 52c0427
Show file tree
Hide file tree
Showing 58 changed files with 2,193 additions and 2,193 deletions.
2 changes: 1 addition & 1 deletion tests/deps.mocha.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

504 changes: 252 additions & 252 deletions tests/mocha/astnode_test.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions tests/mocha/block_json_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ suite('Block JSON initialization', function() {
suite('validateTokens_', function() {
setup(function() {
this.assertError = function(tokens, count, error) {
var block = {
let block = {
type: 'test',
validateTokens_: Blockly.Block.prototype.validateTokens_,
};
Expand All @@ -21,7 +21,7 @@ suite('Block JSON initialization', function() {
};

this.assertNoError = function(tokens, count) {
var block = {
let block = {
type: 'test',
validateTokens_: Blockly.Block.prototype.validateTokens_,
};
Expand Down Expand Up @@ -68,7 +68,7 @@ suite('Block JSON initialization', function() {
suite('interpolateArguments_', function() {
setup(function() {
this.assertInterpolation = function(tokens, args, lastAlign, elements) {
var block = {
let block = {
type: 'test',
interpolateArguments_: Blockly.Block.prototype.interpolateArguments_,
stringToFieldJson_: Blockly.Block.prototype.stringToFieldJson_,
Expand Down Expand Up @@ -304,7 +304,7 @@ suite('Block JSON initialization', function() {
});

this.assertField = function(json, expectedType) {
var block = {
let block = {
type: 'test',
fieldFromJson_: Blockly.Block.prototype.fieldFromJson_,
stringToFieldJson_: Blockly.Block.prototype.stringToFieldJson_,
Expand Down Expand Up @@ -432,12 +432,12 @@ suite('Block JSON initialization', function() {

suite('inputFromJson_', function() {
setup(function() {
var Input = function(type) {
let Input = function(type) {
this.type = type;
this.setCheck = sinon.fake();
this.setAlign = sinon.fake();
};
var Block = function() {
let Block = function() {
this.type = 'test';
this.appendDummyInput = sinon.fake.returns(new Input());
this.appendValueInput = sinon.fake.returns(new Input());
Expand All @@ -446,8 +446,8 @@ suite('Block JSON initialization', function() {
};

this.assertInput = function(json, type, check, align) {
var block = new Block();
var input = block.inputFromJson_(json);
let block = new Block();
let input = block.inputFromJson_(json);
switch (type) {
case 'input_dummy':
chai.assert.isTrue(block.appendDummyInput.calledOnce,
Expand Down
Loading

0 comments on commit 52c0427

Please sign in to comment.