mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 19:30:00 +01:00
Removed all instances of mode: 'test' (#1599)
This commit is contained in:
@@ -175,7 +175,7 @@ test('getSteps() returns correct array of steps', function(t){
|
||||
});
|
||||
|
||||
test('run() runs the sequencer and returns output to callback', function(t) {
|
||||
sequencer.run({ mode: 'test' }, function(out) {
|
||||
sequencer.run(function(out) {
|
||||
t.equal(typeof (sequencer.steps[sequencer.steps.length - 1].output), 'object', 'Output is Generated');
|
||||
t.equal(out, sequencer.steps[sequencer.steps.length - 1].output.src, 'Output callback works');
|
||||
t.end();
|
||||
@@ -185,7 +185,7 @@ test('run() runs the sequencer and returns output to callback', function(t) {
|
||||
test('getStep(offset) returns the step at offset distance relative to current step', function(t) {
|
||||
sequencer.addSteps('invert', {});
|
||||
sequencer.addSteps('blend', {});
|
||||
sequencer.run({ mode: 'test' }, function(out) {
|
||||
sequencer.run(function(out) {
|
||||
t.equal(!!out, true, 'Blend generates output');
|
||||
t.end();
|
||||
});
|
||||
@@ -202,7 +202,7 @@ test('blend returns different output depending on the set offset', function(t) {
|
||||
sequencer.addSteps('blend', {});
|
||||
// because we've added blend before, so instead of -3 we set it to -4
|
||||
sequencer.addSteps('blend', {'offset': -4});
|
||||
sequencer.run({ mode: 'test' }, function(out) {
|
||||
sequencer.run(function(out) {
|
||||
t.notStrictEqual(out, sequencer.steps[sequencer.steps.length - 2].output.src, 'different offsets give different output');
|
||||
t.end();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user