Skip to content

Commit

Permalink
add failing test for instanceof Date
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 15, 2018
1 parent 8f5bcb4 commit 86e6585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-test/lolex-integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ describe("withGlobal", function () {

clock.uninstall();
});

it("Date is instanceof itself", function () {
assert(new jsdomGlobal.Date() instanceof jsdomGlobal.Date);

var clock = withGlobal.install({target: jsdomGlobal, toFake: timers});

assert(new jsdomGlobal.Date() instanceof jsdomGlobal.Date);

clock.uninstall();
});
});

0 comments on commit 86e6585

Please sign in to comment.