Files
image-sequencer/test/core/modules/decode-qr.js
Harsh Khandeparkar 0c3d7be7e2 Module tests (#1058)
* 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
2019-05-06 15:41:42 -04:00

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