UNPKG

720 BJavaScriptView Raw
1import helpers from 'yeoman-test'
2import assert from 'yeoman-assert'
3import path from 'path'
4
5describe('jQuery features', function () {
6 beforeEach(function () {
7 return helpers.run(path.join(__dirname, '../app'))
8 .withOptions({
9 'skip-install': true
10 })
11 .withPrompts({
12 projectName: 'Pixel2HTML',
13 qtyScreens: 3,
14 markupLanguage: 'html',
15 frontEndFramework: 'bootstrap-4',
16 jQuery: true
17 })
18 .toPromise()
19 })
20
21 it('should list dependencies in package.json', function () {
22 assert.fileContent('package.json', /"jquery"/)
23 })
24
25 it('should exists a gulp routine', function () {
26 assert.file([
27 'gulp/common/scripts.js'
28 ])
29 })
30})