Now that it's valid syntax, make the specs work right with for

This commit is contained in:
Gregg Van Hove
2016-09-28 12:19:18 -07:00
parent ff85714b24
commit d85d6dd4b8

View File

@@ -70,7 +70,8 @@ describe('Spies', function () {
];
for (var arity = 0; arity < functions.length; arity++) {
var spy = jasmineUnderTest.createSpy(functions[arity].name, someFunction);
var someFunction = functions[arity],
spy = jasmineUnderTest.createSpy(someFunction.name, someFunction);
expect(spy.length).toEqual(arity);
}