Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e48e27a

Browse files
committed
test(ngAnimate): fix jasmine syntax
1 parent 832b383 commit e48e27a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/ngAnimate/animateSpec.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,19 +2186,19 @@ describe("animations", function() {
21862186
$rootScope.$digest();
21872187
$animate.flush();
21882188

2189-
expect(moveSpy.calls.count()).toBe(1);
2190-
expect(moveSpy.calls.mostRecent().args[1]).toBe('start');
2189+
expect(moveSpy.calls.length).toBe(1);
2190+
expect(moveSpy.mostRecentCall.args[1]).toBe('start');
21912191

21922192
$animate.leave(element);
21932193
$rootScope.$digest();
21942194
$animate.flush();
21952195

2196-
expect(moveSpy.calls.count()).toBe(2);
2197-
expect(moveSpy.calls.mostRecent().args[1]).toBe('close');
2196+
expect(moveSpy.calls.length).toBe(2);
2197+
expect(moveSpy.mostRecentCall.args[1]).toBe('close');
21982198

2199-
expect(leaveSpy.calls.count()).toBe(2);
2200-
expect(leaveSpy.calls.argsFor(0)[1]).toBe('start');
2201-
expect(leaveSpy.calls.argsFor(1)[1]).toBe('close');
2199+
expect(leaveSpy.calls.length).toBe(2);
2200+
expect(leaveSpy.calls[0].args[1]).toBe('start');
2201+
expect(leaveSpy.calls[1].args[1]).toBe('close');
22022202
}));
22032203

22042204

@@ -2221,16 +2221,16 @@ describe("animations", function() {
22212221
expect(enterDone).toHaveBeenCalled();
22222222

22232223
expect(enterSpy).not.toHaveBeenCalled();
2224-
expect(leaveSpy.calls.count()).toBe(1);
2225-
expect(leaveSpy.calls.mostRecent().args[1]).toBe('start');
2224+
expect(leaveSpy.calls.length).toBe(1);
2225+
expect(leaveSpy.mostRecentCall.args[1]).toBe('start');
22262226

2227-
leaveSpy.calls.reset();
2227+
leaveSpy.reset();
22282228
runner.end();
22292229
$animate.flush();
22302230

22312231
expect(enterSpy).not.toHaveBeenCalled();
2232-
expect(leaveSpy.calls.count()).toBe(1);
2233-
expect(leaveSpy.calls.mostRecent().args[1]).toBe('close');
2232+
expect(leaveSpy.calls.length).toBe(1);
2233+
expect(leaveSpy.mostRecentCall.args[1]).toBe('close');
22342234
}));
22352235

22362236

@@ -2292,9 +2292,9 @@ describe("animations", function() {
22922292

22932293
$animate.flush(); // Flushes the animation frames for the callbacks
22942294

2295-
expect(spy.calls.count()).toBe(2);
2296-
expect(spy.calls.argsFor(0)[1]).toBe('start');
2297-
expect(spy.calls.argsFor(1)[1]).toBe('close');
2295+
expect(spy.calls.length).toBe(2);
2296+
expect(spy.calls[0].args[1]).toBe('start');
2297+
expect(spy.calls[1].args[1]).toBe('close');
22982298
}));
22992299
});
23002300

0 commit comments

Comments
 (0)