node-qrcode-lite/test/unit/core/finder-pattern.test.js
Vincenzo Greco 77064f5e5e Refactor/core ()
* Split core lib into multiple files

* Refactor data encoding methods

* Refactor data masking process

* Improve qr code generation process

* Increase minimum required node version to 0.10

* Add linter

* Add tests and tests coverage

* Update travis config to fix compilation issues

* Add examples folder

* Add missing license tag in package.json

* Update build script and add sourcemap support

* Publish only strictly needed files on npm

* Update readme
2016-12-16 23:45:08 +01:00

10 lines
258 B
JavaScript
Executable file

var test = require('tap').test
var pattern = require('core/finder-pattern')
test('Finder pattern', function (t) {
for (var i = 1; i <= 40; i++) {
t.equal(pattern.getPositions(i).length, 3, 'Should always return 3 pattern positions')
}
t.end()
})