an actual test of addStep()

This commit is contained in:
jywarren
2017-01-09 21:11:30 -05:00
parent 5f0f599abe
commit 13ab04a773
4 changed files with 149236 additions and 588 deletions

View File

@@ -11,6 +11,9 @@ require('../dist/image-sequencer.js');
var sequencer = ImageSequencer({
defaultSteps: function() {
console.log('defaults');
},
ui: {
create: function() {}
}
});
@@ -27,3 +30,18 @@ test('Image Sequencer has tests', function (t) {
t.equal(true, true);
t.end();
});
test('addStep adds a step', function (t) {
t.equal(sequencer.steps.length, 0);
sequencer.addStep('ndvi-red');
t.equal(sequencer.steps.length, 1);
t.end();
});
//test('test each module', function (t) {
// steps.forEach(function(step, i) {
// t.equal(step.test(step.testInput),step.testOutput);
// // or check that it's equal with a diff method?
// // we could also test each type of output
// });
//});