Skip to content
Permalink
Browse files

Check whether the code expectation was given

  • Loading branch information...
novemberborn committed Mar 5, 2019
1 parent b0fadb4 commit 9beb60071b432cea9fcda60b244a4c3c637252c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assert.js
@@ -215,7 +215,7 @@ function assertExpectations({assertion, actual, expectations, message, prefix, s
});
}

if (actual.code !== expectations.code) {
if (typeof expectations.code !== 'undefined' && actual.code !== expectations.code) {
throw new AssertionError({
assertion,
message,

0 comments on commit 9beb600

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.