Fix mocha tests

This commit is contained in:
Sam El-Husseini
2020-06-04 18:10:40 -07:00
parent d6ad7c488b
commit dc912c63ad
2 changed files with 6 additions and 0 deletions

View File

@@ -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');

View File

@@ -11,6 +11,10 @@
'use strict';
suite('Theme', function() {
teardown(function() {
// Clear all registered themes.
Blockly.registry.typeMap_['theme'] = {};
});
function defineThemeTestBlocks() {
Blockly.defineBlocksWithJsonArray([{