1 | var standard = require('mocha-standard')
|
2 |
|
3 | describe('coding style', function () {
|
4 | this.timeout(5000)
|
5 |
|
6 | it('lib conforms to standard', standard.files([
|
7 | '*.js',
|
8 | 'lib/**/*.js'
|
9 | ]))
|
10 |
|
11 | it('tests conform to standard', standard.files([
|
12 | 'test/**/*.js'
|
13 | ], {
|
14 | global: [
|
15 | 'describe', 'it', 'xdescribe', 'xit',
|
16 | 'before', 'beforeEach', 'after', 'afterEach',
|
17 | 'expect'
|
18 | ]
|
19 | }))
|
20 | })
|