add basic test and remove some bugs (#271)

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
Varun Gupta
2018-05-29 06:24:23 +05:30
committed by Jeffrey Warren
parent 8d3ca0887f
commit be810fb9c4
5 changed files with 14 additions and 10 deletions

View File

@@ -168,8 +168,18 @@ test('run() runs the sequencer and returns output to callback', function (t) {
sequencer.run('test', function (out) {
t.equal(typeof (sequencer.images.test.steps[sequencer.images.test.steps.length - 1].output), "object", "Output is Generated");
t.equal(out, sequencer.images.test.steps[sequencer.images.test.steps.length - 1].output.src, "Output callback works");
t.end();
});
});
test('getStep(offset) returns the step at offset distance relative to current step',function(t){
sequencer.addSteps('test','invert',{});
sequencer.addSteps('test','blend',{});
sequencer.run('test',function(out){
t.equal(!!out,true,"Blend generates output");
t.end();
});
t.end();
});
test('replaceImage returns false in NodeJS', function (t) {