Skip to content

Commit

Permalink
Add cross-realm Date support
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvachon committed Apr 27, 2017
1 parent 0d0b095 commit 11dc1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chai-subset.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
});
}

if (expected instanceof Date) {
if (actual instanceof Date) {
if (toString.call(expected) === '[object Date]') {
if (toString.call(actual) === '[object Date]') {
return expected.getTime() === actual.getTime();
} else {
return false;
Expand Down

0 comments on commit 11dc1d0

Please sign in to comment.