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: documentation fix and msg error update in childShouldNotThrowAn…
…dAbort()
  • Loading branch information
clarenced committed Apr 17, 2017
commit 6156f98a7d5aca712b56af1c58c1b18dd5556ebb
4 changes: 2 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ The realpath of the 'tmp' directory.

Name of the temp directory used by tests.

### childShouldNotThrowAndAbort
This test makes sure that when using --abort-on-uncaught-exception and when throwing an error
### childShouldNotThrowAndAbort()
This test makes sure that when using `--abort-on-uncaught-exception` and when throwing an error
from within a domain that has an error handler setup, the process _does not_ abort.

### WPT
Expand Down
6 changes: 3 additions & 3 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ exports.childShouldThrowAndAbort = function() {
};


// This test makes sure that when using --abort-on-uncaught-exception and
// This function makes sure that when using --abort-on-uncaught-exception and
// when throwing an error from within a domain that has an error handler
// setup, the process _does not_ abort.

Expand All @@ -269,8 +269,8 @@ exports.childShouldNotThrowAndAbort = () => {

const child = child_process.exec(testCmd);
child.on('exit', (code, signal) => {
const errorMsg = `Test should have exited with exit code 0
but insteand exited with code ${code} and signal ${signal}`;
const errorMsg = 'Test should have exited with exit code 0 but instead ' +
`exited with ${code} and signal ${signal}`;
assert.strictEqual(code, 0, errorMsg);
});
};
Expand Down