UNPKG

kick

Version:

Kickstarter and generator for AngularJS based on ES6, webpack and best practices

20 lines (15 loc) 577 B
'use strict'; const TestHelpers = require('../support/helpers'); const fs = require('fs-extra'); const child_process = require('child_process'); const kick = 'node ' + __dirname + '/../../bin/kick '; describe('$ kick new', () => { it('should create new application without setup', () => { fs.removeSync('npm-test'); child_process.execSync(kick + 'new npmTest -ns'); process.chdir('npm-test'); const file = TestHelpers.getFile('package.json'); expect(file).toMatch('"name": "NpmTest"'); }); afterAll(TestHelpers.cleanup); });