diff --git a/plugins/block-shareable-procedures/test/procedure_blocks.mocha.js b/plugins/block-shareable-procedures/test/procedure_blocks.mocha.js index 31fd69e99f..83c6e4798b 100644 --- a/plugins/block-shareable-procedures/test/procedure_blocks.mocha.js +++ b/plugins/block-shareable-procedures/test/procedure_blocks.mocha.js @@ -29,7 +29,8 @@ const {ProcedureCreate} = require('../src/events_procedure_create'); suite('Procedures', function() { setup(function() { this.jsdomCleanup = - require('jsdom-global')('
'); + require('jsdom-global')('
', + {pretendToBeVisual: true}); this.sandbox = sinon.createSandbox(); globalThis.clock = this.sandbox.useFakeTimers(); @@ -72,11 +73,6 @@ suite('Procedures', function() { .callsFake(() => { return this.workspace; }); - window.requestAnimationFrame = this.sandbox.stub() - .callsFake((callback) => { - callback(); - }); - window.cancelAnimationFrame = this.sandbox.stub(); }); teardown(function() {