@ -1,4 +1,5 @@
var path = require('path');
var webpack = require('webpack');
module.exports = function(config) {
config.set({
@ -39,6 +40,11 @@ module.exports = function(config) {
'frame_grabber$': 'src/input/frame_grabber'
}
},
plugins: [
new webpack.DefinePlugin({
ENV: require(path.join(__dirname, './env/production'))
})
]
'karma-chrome-launcher',
@ -1,4 +1,4 @@
const ArrayHelper = require('../../src/array_helper');
const ArrayHelper = require('../../src/common/array_helper');
describe('init', function() {
it('initializes an array with the given value', function() {
@ -1,5 +1,5 @@
const BarcodeLocator = require('../../src/barcode_locator');
const Config = require('../../src/config');
const BarcodeLocator = require('../../src/locator/barcode_locator');
const Config = require('../../src/config/config');
const merge = require('lodash/object/merge');
describe('checkImageConstraints', function() {
const CameraAccess = require('../../src/camera_access');
const CameraAccess = require('../../src/input/camera_access');
var originalURL,
originalMediaStreamTrack,
const CVUtils = require('../../src/cv_utils');
const CVUtils = require('../../src/common/cv_utils');
describe('imageRef', function() {
it('gets the image Reference for a coordinate', function() {
const Events = require('../../src/events');
const Events = require('../../src/common/events');
beforeEach(function() {
Events.unsubscribe();
const ResultCollector = require('../../src/result_collector');
const ImageDebug = require('../../src/image_debug');
const ResultCollector = require('../../src/analytics/result_collector');
const ImageDebug = require('../../src/common/image_debug');
var canvasMock,
imageSize,