Skip to content

Commit d4a61c3

Browse files
committed
test(gen:endpoint): include sinon,expect globals for eslint
1 parent 0748397 commit d4a61c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/endpoint.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function eslintDir(dir, name, folder) {
8686

8787
let specFiles = fs.readdirAsync(endpointDir)
8888
.then(files => files.filter(file => minimatch(file, '**/+(*.spec|*.mock|*.integration).js', {dot: true})))
89-
.map(file => testFile(`${eslintCmd} --env node,es6,mocha`, path.join('./server/api/', folder, file)));
89+
.map(file => testFile(`${eslintCmd} --env node,es6,mocha --global sinon,expect`, path.join('./server/api/', folder, file)));
9090

9191
return Promise.all([regFiles, specFiles]);
9292
}

0 commit comments

Comments
 (0)