Skip to content

Commit

Permalink
Fix tests for faked @@toStringTag
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 31, 2015
1 parent 8442bb7 commit 3b9c26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -22,7 +22,7 @@ test('not Dates', function (t) {
test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {
var realDate = new Date();
var fakeDate = { valueOf: function () { return realDate.getTime(); }, toString: function () { return String(realDate); } };
fakeDate[Symbol.toStringTag] = function () { return 'Date'; };
fakeDate[Symbol.toStringTag] = 'Date';
t.notOk(isDate(fakeDate), 'fake Date with @@toStringTag "Date" is not Date');
t.end();
});
Expand Down

0 comments on commit 3b9c26c

Please sign in to comment.