Skip to content

Commit 5a39c4c

Browse files
authored
refactor(tests): Migrate mocha tests from goog.require to import (#7196)
Migrate the two remaining uses of goog.require in the mocha tests from goog.require to import.
1 parent a4ba65a commit 5a39c4c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/mocha/field_multilineinput_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import {
2323
workspaceTeardown,
2424
} from './test_helpers/setup_teardown.js';
2525
import {runCodeGenerationTestSuites} from './test_helpers/code_generation.js';
26-
const {dartGenerator} = goog.require('Blockly.Dart.all');
27-
const {javascriptGenerator} = goog.require('Blockly.JavaScript.all');
28-
const {luaGenerator} = goog.require('Blockly.Lua.all');
29-
const {phpGenerator} = goog.require('Blockly.PHP.all');
30-
const {pythonGenerator} = goog.require('Blockly.Python.all');
26+
import {dartGenerator} from '../../generators/dart.js';
27+
import {javascriptGenerator} from '../../generators/javascript.js';
28+
import {luaGenerator} from '../../generators/lua.js';
29+
import {phpGenerator} from '../../generators/php.js';
30+
import {pythonGenerator} from '../../generators/python.js';
3131

3232
suite('Multiline Input Fields', function () {
3333
setup(function () {

tests/mocha/generator_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
goog.declareModuleId('Blockly.test.generator');
88

99
import * as Blockly from '../../build/src/core/blockly.js';
10-
const {DartGenerator} = goog.require('Blockly.Dart');
11-
const {JavascriptGenerator} = goog.require('Blockly.JavaScript');
12-
const {LuaGenerator} = goog.require('Blockly.Lua');
13-
const {PhpGenerator} = goog.require('Blockly.PHP');
14-
const {PythonGenerator} = goog.require('Blockly.Python');
10+
import {DartGenerator} from '../../generators/dart/dart_generator.js';
11+
import {JavascriptGenerator} from '../../generators/javascript/javascript_generator.js';
12+
import {LuaGenerator} from '../../generators/lua/lua_generator.js';
13+
import {PhpGenerator} from '../../generators/php/php_generator.js';
14+
import {PythonGenerator} from '../../generators/python/python_generator.js';
1515
import {
1616
sharedTestSetup,
1717
sharedTestTeardown,

0 commit comments

Comments
 (0)