mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 19:30:00 +01:00
cleanup, start to testing, docs, etc
This commit is contained in:
27
test/image-sequencer.js
Normal file
27
test/image-sequencer.js
Normal file
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
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')({
|
||||
defaultSteps: function() {
|
||||
console.log('defaults');
|
||||
}
|
||||
});
|
||||
|
||||
function read (file) {
|
||||
return fs.readFileSync('./test/fixtures/' + file, 'utf8').trim();
|
||||
}
|
||||
|
||||
function write (file, data) { /* jshint ignore:line */
|
||||
return fs.writeFileSync('./test/fixtures/' + file, data + '\n', 'utf8');
|
||||
}
|
||||
|
||||
test.skip('Image Sequencer has tests', function (t) {
|
||||
// read('something.html')
|
||||
t.equal(true, true);
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user