Skip to content

Commit

Permalink
add missing integration tests to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 7, 2019
1 parent 619ef49 commit 75f103e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-scripts.js
Expand Up @@ -115,7 +115,7 @@ module.exports = {
integration: {
script: test(
'integration',
'--timeout 10000 --slow 3750 "test/integration/*.spec.js"'
'--timeout 10000 --slow 3750 "test/integration/**/*.spec.js"'
),
description: 'Run Node.js integration tests',
hiddenFromHelp: true
Expand Down
25 changes: 25 additions & 0 deletions test/integration/options/reporter-option.spec.js
@@ -0,0 +1,25 @@
'use strict';

var runMocha = require('../helpers').runMocha;

describe('--reporter-option', function() {
describe('when given options w/ invalid format', function() {
it('should display an error', function(done) {
runMocha(
'passing.fixture.js',
['--reporter-option', 'foo=bar=baz'],
function(err, res) {
if (err) {
return done(err);
}
expect(res, 'to have failed').and(
'to contain output',
/invalid reporter option/i
);
done();
},
'pipe'
);
});
});
});

0 comments on commit 75f103e

Please sign in to comment.