kick
Version:
Kickstarter and generator for AngularJS based on ES6, webpack and best practices
26 lines (18 loc) • 736 B
JavaScript
;
const TestHelpers = require('../support/helpers');
const fs = require('fs-extra');
const child_process = require('child_process');
const kick = 'node ' + __dirname + '/../../bin/kick ';
describe('$ kick tdd', () => {
beforeAll(TestHelpers.createApp);
afterAll(TestHelpers.cleanup);
it('should not run without packages', () => {
const output = child_process.execSync(kick + 'tdd').toString();
expect(output).toMatch("Can't start server with missing packages")
});
it('should run npm test task', () => {
fs.ensureDirSync('node_modules');
const output = child_process.execSync(kick + 'tdd').toString();
expect(output).toMatch("Running Karma test server");
});
});