Removed all instances of mode: 'test' (#1599)

This commit is contained in:
Deogle
2020-01-31 10:58:12 -05:00
committed by GitHub
parent 5f745ef4bd
commit 600cce0be3
7 changed files with 12 additions and 12 deletions

View File

@@ -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();
});