Skip to content

Commit

Permalink
Fix lint violations for getter-return
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Oct 8, 2018
1 parent 720743b commit 5715752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sandbox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,9 @@ describe("Sandbox", function () {
it("should error when descriptor has no setter", function () {
var sandbox = this.sandbox;
var object = {
get catpants() {}
get catpants() {
return;
}
};

assert.exception(
Expand Down
2 changes: 2 additions & 0 deletions test/stub-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ describe("stub", function () {
var obj = {
get prop() {
fail("should not call getter");
return;
}
};

Expand Down Expand Up @@ -2910,6 +2911,7 @@ describe("stub", function () {
var myObj = {
get prop() {
fail("should not call the old getter");
return;
}
};

Expand Down

0 comments on commit 5715752

Please sign in to comment.