mirror of
https://github.com/google/blockly.git
synced 2026-01-13 20:07:08 +01:00
Fix mocha tests
This commit is contained in:
@@ -1657,6 +1657,8 @@ suite('Blocks', function() {
|
||||
});
|
||||
teardown(function() {
|
||||
this.workspace.dispose();
|
||||
// Clear all registered themes.
|
||||
Blockly.registry.typeMap_['theme'] = {};
|
||||
});
|
||||
test('Set colour hue', function() {
|
||||
this.block.setColour('20');
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
'use strict';
|
||||
|
||||
suite('Theme', function() {
|
||||
teardown(function() {
|
||||
// Clear all registered themes.
|
||||
Blockly.registry.typeMap_['theme'] = {};
|
||||
});
|
||||
|
||||
function defineThemeTestBlocks() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
|
||||
Reference in New Issue
Block a user