1 | import helpers from 'yeoman-test'
|
2 | import assert from 'yeoman-assert'
|
3 | import path from 'path'
|
4 |
|
5 | describe('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 | })
|