mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
var webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = function(config) {
|
module.exports = function(config) {
|
||||||
config.set({
|
config.set({
|
||||||
@@ -39,6 +40,11 @@ module.exports = function(config) {
|
|||||||
'frame_grabber$': 'src/input/frame_grabber'
|
'frame_grabber$': 'src/input/frame_grabber'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
ENV: require(path.join(__dirname, './env/production'))
|
||||||
|
})
|
||||||
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'karma-chrome-launcher',
|
'karma-chrome-launcher',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const ArrayHelper = require('../../src/array_helper');
|
const ArrayHelper = require('../../src/common/array_helper');
|
||||||
|
|
||||||
describe('init', function() {
|
describe('init', function() {
|
||||||
it('initializes an array with the given value', function() {
|
it('initializes an array with the given value', function() {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const BarcodeLocator = require('../../src/barcode_locator');
|
const BarcodeLocator = require('../../src/locator/barcode_locator');
|
||||||
const Config = require('../../src/config');
|
const Config = require('../../src/config/config');
|
||||||
const merge = require('lodash/object/merge');
|
const merge = require('lodash/object/merge');
|
||||||
|
|
||||||
describe('checkImageConstraints', function() {
|
describe('checkImageConstraints', function() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const CameraAccess = require('../../src/camera_access');
|
const CameraAccess = require('../../src/input/camera_access');
|
||||||
|
|
||||||
var originalURL,
|
var originalURL,
|
||||||
originalMediaStreamTrack,
|
originalMediaStreamTrack,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const CVUtils = require('../../src/cv_utils');
|
const CVUtils = require('../../src/common/cv_utils');
|
||||||
|
|
||||||
describe('imageRef', function() {
|
describe('imageRef', function() {
|
||||||
it('gets the image Reference for a coordinate', function() {
|
it('gets the image Reference for a coordinate', function() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const Events = require('../../src/events');
|
const Events = require('../../src/common/events');
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
Events.unsubscribe();
|
Events.unsubscribe();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const ResultCollector = require('../../src/result_collector');
|
const ResultCollector = require('../../src/analytics/result_collector');
|
||||||
const ImageDebug = require('../../src/image_debug');
|
const ImageDebug = require('../../src/common/image_debug');
|
||||||
|
|
||||||
var canvasMock,
|
var canvasMock,
|
||||||
imageSize,
|
imageSize,
|
||||||
|
|||||||
Reference in New Issue
Block a user