From 0580218c6310486be7ee4275ab85fc24f85bd7eb Mon Sep 17 00:00:00 2001 From: daemon1024 Date: Fri, 26 Feb 2021 19:38:25 +0000 Subject: [PATCH] use t.plan instead of t.end plan the no of tape tests instead of waiting for ending in options-test --- test/core/templates/options-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/core/templates/options-test.js b/test/core/templates/options-test.js index 548a21e8..870dee63 100644 --- a/test/core/templates/options-test.js +++ b/test/core/templates/options-test.js @@ -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; @@ -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(); }); }); });