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

Commit 2c9066e

Browse files
committed
test(ngMessages): fix most recent call syntax
1 parent 8ecc935 commit 2c9066e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ngMessages/messagesSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ describe('ngMessages', function() {
517517
$rootScope.$digest(); // The next digest triggers the error
518518

519519
// Make sure removing the element triggers the deregistration in ngMessages
520-
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: a');
520+
expect(trim(deregisterSpy.mostRecentCall.args[0].nodeValue)).toBe('ngMessage: a');
521521
expect(messageChildren(element).length).toBe(0);
522522
});
523523
});
@@ -558,7 +558,7 @@ describe('ngMessages', function() {
558558
$rootScope.$digest(); // The next digest triggers the error
559559

560560
// Make sure removing the element triggers the deregistration in ngMessages
561-
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: b');
561+
expect(trim(deregisterSpy.mostRecentCall.args[0].nodeValue)).toBe('ngMessage: b');
562562
expect(messageChildren(element).length).toBe(1);
563563
expect(trim(element.text())).toEqual('A');
564564
});
@@ -794,7 +794,7 @@ describe('ngMessages', function() {
794794
jqLite(nodeB).remove();
795795

796796
// Make sure removing the element triggers the deregistration in ngMessages
797-
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: b');
797+
expect(trim(deregisterSpy.mostRecentCall.args[0].nodeValue)).toBe('ngMessage: b');
798798

799799
$rootScope.$apply('items.a = true');
800800

0 commit comments

Comments
 (0)