Skip to content

Commit

Permalink
Fix broken test in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Jan 8, 2018
1 parent 6ed81ce commit 85e3f91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/fake-test.js
Expand Up @@ -30,11 +30,15 @@ function verifyProxy(func, argument) {

function noop() {}

var hasFunctionNameSupport = typeof noop.name !== "undefined";

describe("fake", function () {
describe("module", function () {
it("should return a unary Function named 'fake'", function () {
assert.equals(fake.length, 1);
assert.equals(fake.name, "fake");
if (hasFunctionNameSupport) {
assert.equals(fake.name, "fake");
}
});
});

Expand Down

0 comments on commit 85e3f91

Please sign in to comment.