From 2ebef9f0759843e9a063de7a512b46e3e7daea7e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 31 Jan 2015 10:20:39 -0800 Subject: [PATCH] Fix tests for faked @@toStringTag --- package.json | 2 +- test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6381684..efc739a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test.js b/test.js index ee88953..a108bbc 100644 --- a/test.js +++ b/test.js @@ -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(); });