Skip to content

Commit

Permalink
Add test task
Browse files Browse the repository at this point in the history
  • Loading branch information
furstenheim committed May 2, 2017
1 parent 2f8da7e commit 1436340
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
11 changes: 4 additions & 7 deletions dist/automatic-labelling.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (config) {
{pattern: 'test/*-test.js', watched: false}
],
frameworks: ['browserify', 'mocha', 'chai'],
browserNoActivityTimeout: 10000,
browserNoActivityTimeout: 100000,
preprocessors: {
'test/*-test.js': ['browserify']
},
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/automatic-labelling.js",
"scripts": {
"gulp": "gulp",
"test": "karma start karma.conf.js --single-run",
"test-watch": "karma start karma.conf.js"
},
"reposistory": {
Expand All @@ -15,7 +16,10 @@
"ignore": [
"/coverage/",
"/dist"
]
],
"global": {
"describe": true
}
},
"author": "Gabriel Fürstenheim <furstenheim@gmail.com>",
"license": "ISC",
Expand Down
1 change: 0 additions & 1 deletion src/main-algorithm-loader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {mainAlgorithm}
const work = require('webworkify')
const algorithm = work(require('./main-algorithm.js'))
const _ = require('lodash')
const promiseResolutions = {}
function mainAlgorithm (extendedPoints, params = {}) {
return new Promise(function (resolve, reject) {
Expand Down
4 changes: 2 additions & 2 deletions test/main-algorithm-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1436340

Please sign in to comment.