evrythng-scan
Version:
Plugin for evrythng.js that adds Barcode, QR code, Image Recognition and OCR scanning to applications.
29 lines (23 loc) • 631 B
JavaScript
const dependencies = {
'evrythng': '../node_modules/evrythng/dist/evrythng'
}
if (typeof module !== 'undefined') {
module.exports = dependencies
} else {
let tests = []
for (let file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
if (/spec\.js$/.test(file)) {
tests.push(file)
}
}
}
require.config({
// Karma serves files under /base, which is the basePath from your config file
baseUrl: '/base/dist',
deps: tests,
paths: dependencies,
// we have to kickoff jasmine, as it is asynchronous
callback: window.__karma__.start
})
}