Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add tests for new language features
  • Loading branch information
BridgeAR committed Apr 24, 2019
commit c3c18a18525d191eb118432fcb522f35c478aeb6
4 changes: 2 additions & 2 deletions test/parallel/test-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,13 @@ common.expectsError(
}
);
common.expectsError(
() => assert(typeof 123 === 'string'),
() => assert(typeof 123n === 'string'),
{
code: 'ERR_ASSERTION',
type: assert.AssertionError,
generatedMessage: true,
message: 'The expression evaluated to a falsy value:\n\n ' +
"assert(typeof 123 === 'string')\n"
"assert(typeof 123n === 'string')\n"
Comment thread
BridgeAR marked this conversation as resolved.
}
);

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ const errorTests = [
expect: '... '
},
{
send: 'return 1;',
send: 'return 1n;',
expect: '... '
},
{
send: '})()',
expect: '1'
expect: '1n'
},
// Multiline function call
{
Expand Down