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 405685f commit 2ebef9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"test": "npm run lint && node test.js && npm run security",
"test": "npm run lint && node --harmony --es-staging test.js && npm run security",
"coverage": "covert test.js",
"coverage-quiet": "covert test.js --quiet",
"lint": "npm run jscs && npm run eslint",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -20,7 +20,7 @@ test('not regexes', function (t) {
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
var regex = /a/g;
var fakeRegex = { valueOf: function () { return regex; }, toString: function () { return String(regex); } };
fakeRegex[Symbol.toStringTag] = function () { return 'RegExp'; };
fakeRegex[Symbol.toStringTag] = 'RegExp';
t.notOk(isRegex(fakeRegex), 'fake RegExp with @@toStringTag "RegExp" is not regex');
t.end();
});
Expand Down

0 comments on commit 2ebef9f

Please sign in to comment.