mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Adding async cleanup to tests (#4103)
* Adding setup and teardown to more mocha tests. * Update workspace dispose cleanup calls.
This commit is contained in:
@@ -16,7 +16,11 @@ suite('Registry', function() {
|
||||
return 'something';
|
||||
};
|
||||
|
||||
setup(function() {
|
||||
sharedTestSetup.call(this);
|
||||
});
|
||||
teardown(function() {
|
||||
sharedTestTeardown.call(this);
|
||||
if (Blockly.registry.typeMap_['test'] &&
|
||||
Blockly.registry.typeMap_['test']['test_name']) {
|
||||
delete Blockly.registry.typeMap_['test']['test_name'];
|
||||
|
||||
Reference in New Issue
Block a user