Skip to content

Commit

Permalink
use t.plan instead of t.end
Browse files Browse the repository at this point in the history
plan the no of tape tests instead of waiting for ending in options-test
  • Loading branch information
daemon1024 authored and dependabot-preview[bot] committed Feb 26, 2021
1 parent cc297ee commit 0580218
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/core/templates/options-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ module.exports = (moduleName, options, benchmark, input) => {
sequencer.loadImages(input || red);
// Add the step.
sequencer.addSteps(moduleName, options[0]);

t.plan(2);

// Run the ImageSequencer with initial option.
sequencer.run(() => {
let result = sequencer.steps[1].output.src;
Expand Down Expand Up @@ -56,7 +59,6 @@ module.exports = (moduleName, options, benchmark, input) => {

t.equal(res.equal, true, `${moduleName} module works correctly when the option is changed to ${JSON.stringify(options[1])}`);
sequencer = null;
t.end();
});
});
});
Expand Down

0 comments on commit 0580218

Please sign in to comment.