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

@@ -3,7 +3,7 @@ Image Sequencer
aka "Consequencer"
![TravisCI badge](https://travis-ci.org/jywarren/image-sequencer.svg)
[![Build Status](https://travis-ci.org/jywarren/image-sequencer.svg?branch=master)](https://travis-ci.org/jywarren/image-sequencer)
## Why

149802
dist/image-sequencer.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -6,7 +6,7 @@ module.exports = {
'image-select': require('./modules/ImageSelect'),
'green-channel': require('./modules/GreenChannel'),
'ndvi-red': require('./modules/NdviRed'),
// 'plot': require('./modules/Plot'),
'plot': require('./modules/Plot'),
'image-threshold': require('./modules/ImageThreshold')
}

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
// });
//});