tape test basic setup

This commit is contained in:
jywarren
2017-01-09 20:51:47 -05:00
parent 61ac740993
commit ce41dfea59
8 changed files with 627 additions and 149223 deletions

5
.travis.yml Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- '4'
- '5'
script: npm test

View File

@@ -72,6 +72,7 @@ Notes on development next steps:
* [ ] click to expand for all images
* [ ] `ImageSequencer.Renderer` class to manage image output formats and adapters
* [ ] output in animated Gif?
* [ ] remove step
### Modularization
@@ -86,6 +87,7 @@ Notes on development next steps:
* [ ] ...could we directly include package.json for module descriptions? At least as a fallback.
* [ ] (for node-and-line style UIs) non-linear sequences with Y-splitters
* [ ] `sequencer.addModule('path/to/module.js')` style module addition -- also to avoid browserifying all of Plotly :-P
* [ ] remove step
### Testing

149817
dist/image-sequencer.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -22,6 +22,9 @@
<div class="header">
<h1>Image Sequencer</h1>
<h3>
<a href="https://github.com/jywarren/image-sequencer"><i class="fa fa-github"></i></a>
</h3>
</div>

View File

@@ -1,4 +1,4 @@
window.$ = window.jQuery = require('jquery');
if (typeof window !== 'undefined') window.$ = window.jQuery = require('jquery');
ImageSequencer = function ImageSequencer(options) {

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

@@ -19,8 +19,19 @@ module.exports = function UserInterface(options) {
}
}
// method to remove the UI for a given method, and remove the step
function remove() {
}
// method to reorder steps, and update the UI
//function move() {
//}
return {
create: create
create: create,
remove: remove
}
}

View File

@@ -6,7 +6,9 @@ var test = require('tape');
// We should only test headless code here.
// http://stackoverflow.com/questions/21358015/error-jquery-requires-a-window-with-a-document#25622933
var imageSequencer = require('../dist/image-sequencer')({
require('../dist/image-sequencer.js');
var sequencer = ImageSequencer({
defaultSteps: function() {
console.log('defaults');
}
@@ -20,7 +22,7 @@ function write (file, data) { /* jshint ignore:line */
return fs.writeFileSync('./test/fixtures/' + file, data + '\n', 'utf8');
}
test.skip('Image Sequencer has tests', function (t) {
test('Image Sequencer has tests', function (t) {
// read('something.html')
t.equal(true, true);
t.end();