Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1466497 - Enable ESLint rule require-expected-throws-or-rejects f…
Browse files Browse the repository at this point in the history
…or head_devtools_inspector_sidebar.js. r=jdescottes

MozReview-Commit-ID: LnOPs92HNPK
  • Loading branch information
Standard8 committed Jun 1, 2018
1 parent e3f00cd commit 8fda571
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ module.exports = {
// XXX Bug 1452706. These directories are still being fixed, so turn off
// mozilla/require-expected-throws-or-rejects for now.
"files": [
"devtools/client/inspector/extensions/test/head_devtools_inspector_sidebar.js",
"storage/test/unit/**",
],
"rules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function expectNoSuchActorIDs(client, actors) {
info(`Test that all the objectValueGrip actors have been released`);
for (const actor of actors) {
await Assert.rejects(client.request({to: actor, type: "requestTypes"}),
`No such actor for ID: ${actor}`);
err => err.message == `No such actor for ID: ${actor}`);
}
}

Expand Down

0 comments on commit 8fda571

Please sign in to comment.