Skip to content

Commit

Permalink
test fixes (#537)
Browse files Browse the repository at this point in the history
Closes #519
  • Loading branch information
imrvelj authored and arb committed May 16, 2017
1 parent eb4adbc commit 6070669
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
16 changes: 5 additions & 11 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ const GoodReporter = require('./fixtures/reporters');
const Monitor = require('../lib/monitor');

const reporters = {
foo: [{
module: '../test/fixtures/reporters',
name: 'Incrementer',
args: [10, 5]
}, {
module: '../test/fixtures/reporters',
name: 'Stringify'
}, {
module: '../test/fixtures/reporters',
name: 'Writer'
}]
foo: [
new GoodReporter.Incrementer(10, 5),
new GoodReporter.Stringify(),
new GoodReporter.Writer()
]
};


Expand Down
11 changes: 4 additions & 7 deletions test/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,10 @@ describe('Monitor', () => {

const monitor = internals.monitorFactory(new Hapi.Server(), {
reporters: {
foo: [{
module: '../test/fixtures/reporters',
name: 'Incrementer',
args: [10, 5]
}, {
module: '../test/fixtures/reporter'
}]
foo: [
new GoodReporter.Incrementer(10, 5),
{ module: require('./fixtures/reporter') }
]
}
});

Expand Down

0 comments on commit 6070669

Please sign in to comment.