mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 03:40:03 +01:00
use t.plan instead of t.end
plan the no of tape tests instead of waiting for ending in options-test
This commit is contained in:
committed by
dependabot-preview[bot]
parent
cc297ee3f7
commit
0580218c63
@@ -24,6 +24,9 @@ module.exports = (moduleName, options, benchmark, input) => {
|
|||||||
sequencer.loadImages(input || red);
|
sequencer.loadImages(input || red);
|
||||||
// Add the step.
|
// Add the step.
|
||||||
sequencer.addSteps(moduleName, options[0]);
|
sequencer.addSteps(moduleName, options[0]);
|
||||||
|
|
||||||
|
t.plan(2);
|
||||||
|
|
||||||
// Run the ImageSequencer with initial option.
|
// Run the ImageSequencer with initial option.
|
||||||
sequencer.run(() => {
|
sequencer.run(() => {
|
||||||
let result = sequencer.steps[1].output.src;
|
let result = sequencer.steps[1].output.src;
|
||||||
@@ -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])}`);
|
t.equal(res.equal, true, `${moduleName} module works correctly when the option is changed to ${JSON.stringify(options[1])}`);
|
||||||
sequencer = null;
|
sequencer = null;
|
||||||
t.end();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user