Skip to content

Commit

Permalink
test: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bengourley committed Nov 28, 2019
1 parent b670a23 commit 20cc0b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/browser/features/strict_mode.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Scenario: notifier does not error in strict mode
Then I wait to receive a request
And the request is a valid browser payload for the error reporting API
And the exception "errorClass" equals "Error"
And the exception "message" equals "Bugsnag usage error. notify() expected error/opts parameters, got unsupported object"
And the exception "message" equals "Bugsnag usage error. notify(err) expected an error, got unsupported object"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var bugsnagClient = bugsnag({
var contextualize = bugsnagClient.getPlugin('contextualize')
contextualize(function () {
fs.createReadStream('does not exist')
}, (event) => {
}, function (event) {
event.metaData = {
...event.metaData,
subsystem: { name: 'fs reader', widgetsAdded: 'cat,dog,mouse' }
Expand Down

0 comments on commit 20cc0b6

Please sign in to comment.