Skip to content

Commit

Permalink
chore: clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Oct 25, 2022
1 parent 28f494c commit 6651814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions core/procedures/update_procedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import {Workspace} from '../workspace.js';
* @internal
*/
export function triggerProceduresUpdate(workspace: Workspace) {
console.log(workspace.getAllBlocks(false).length);
for (const block of workspace.getAllBlocks(false)) {
if (isProcedureBlock(block)) {
console.log('calling');
block.doProcedureUpdate();
}
}
Expand Down
6 changes: 2 additions & 4 deletions tests/mocha/procedure_map_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ suite('Procedure Map', function() {
sharedTestTeardown.call(this);
});

suite.only('triggering block updates', function() {
suite('triggering block updates', function() {
setup(function() {
Blockly.Blocks['procedure_mock'] = {
init: function() { },
doProcedureUpdate: function() {
console.log('called');
},
doProcedureUpdate: function() { },
};

this.procedureBlock = this.workspace.newBlock('procedure_mock');
Expand Down

0 comments on commit 6651814

Please sign in to comment.