Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 28 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* eslint func-names: 0 */ |
||
3 | 'use strict'; |
||
4 | |||
5 | var chai = require('chai'); |
||
6 | var expect = chai.expect; |
||
7 | var path = require('path'); |
||
8 | var shell = require('shelljs'); |
||
9 | |||
10 | chai.use(require('chai-fs-latest')); |
||
11 | |||
12 | describe('General', function () { |
||
13 | var projectRoot = path.resolve(__dirname, '..', '..'); |
||
14 | |||
15 | before(function () { |
||
16 | shell.cd(projectRoot); |
||
17 | }); |
||
18 | |||
19 | describe('build (requires project clean for valid testing)', function () { |
||
20 | this.timeout(30000); |
||
21 | |||
22 | it('should create a build directory at the project root', function () { |
||
23 | shell.exec('npm run build --silent', { |
||
24 | silent: true |
||
25 | }); |
||
26 | |||
27 | expect(path.join(projectRoot, 'build')).to.be.a.directory(); |
||
28 | }); |
||
29 | }); |
||
30 | }); |
||
31 |