Skip to content
Permalink
Browse files
Fix broken test in IE11
  • Loading branch information
mroderick committed Jan 8, 2018
1 parent 6ed81ce commit 85e3f911d82bac55c5201b388c266df53a97e3e5
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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");
}
});
});

0 comments on commit 85e3f91

Please sign in to comment.