mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 03:40:03 +01:00
an actual test of addStep()
This commit is contained in:
@@ -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
|
||||
// });
|
||||
//});
|
||||
|
||||
Reference in New Issue
Block a user