mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +01:00
* change all old module benchmarks * no node 6 * add average module tests * edge-detect test added * edge detect tests * flip-image tests * tint tests * saturation tests * gradient tests * exposure tests * draw-rectangle tests * color-temperature tests * convolution tests * paint-bucket tests * ndvi tests * ndvi-colormap tests * histogram tests * crop tests * gamma-correction tests * dynamic tests * colorbar tests * webgl-distort tests * fisheye-gl tests * blend module tests * overlay module tests
22 lines
642 B
JavaScript
22 lines
642 B
JavaScript
var test = require('tape');
|
|
|
|
require('../../../src/ImageSequencer.js');
|
|
|
|
var sequencer = ImageSequencer({ ui: false });
|
|
|
|
var Qr = require('../images/IS-QR');
|
|
|
|
test('Load Decode-Qr module', function(t) {
|
|
sequencer.loadImages(Qr);
|
|
sequencer.addSteps('decode-qr');
|
|
t.equal(sequencer.steps[1].options.name, 'decode-qr', 'Decode-Qr module is getting loaded');
|
|
t.end();
|
|
});
|
|
|
|
test('Decode-qr module works correctly', function(t) {
|
|
sequencer.run({ mode: 'test' }, function(out) {
|
|
var result = sequencer.steps[1].options.step.qrval;
|
|
t.equal(result, "http://github.com/publiclab/image-sequencer", 'should be equal');
|
|
t.end();
|
|
})
|
|
}) |