Steven Burrows 5cb50e3d87 GUI: Reverted changes to gulp task unit tests
Moved the unit-tests folder in to the correct location

Change-Id: I36bad4aea26ab2425e4b1b6bb2fea1d3be26548e
2017-07-12 14:05:09 +01:00

18 lines
424 B
JavaScript

import gulp from 'gulp';
import path from 'path';
import { Server } from 'karma';
const tests = ['../../web/gui/src/main/webapp/tests/**/*.js'];
const test = () => {
new Server({
configFile: path.join(__dirname, '../../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'),
singleRun: true
}).start();
};
const tasks = () => {
gulp.task('test', () => test());
};
export default tasks();