Skip to content

Commit

Permalink
Test for throw on invalid value for onUncaughtException (#425)
Browse files Browse the repository at this point in the history
PR-URL: #425
  • Loading branch information
matthewloring authored Feb 27, 2017
1 parent c3435ff commit 1ea81a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test-trace-uncaught-exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@ describe('tracewriter publishing', function() {
});
});

it('should error on invalid config values', function() {
assert.throws(function() {
trace.start({
onUncaughtException: 'invalidValue'
});
});
});
});

0 comments on commit 1ea81a5

Please sign in to comment.