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

Commit 9bf964f

Browse files
committed
style(ngRepeatSpec): make jshint happy
1 parent 54f0bc0 commit 9bf964f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/ng/directive/ngRepeatSpec.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,8 @@ describe('ngRepeat', function() {
939939
it('should throw error on adding existing duplicates and recover', function() {
940940
scope.items = [a, a, a];
941941
scope.$digest();
942-
expect($exceptionHandler.errors.shift().message).
943-
toMatch(
944-
/^\[ngRepeat:dupes\] Duplicates in a repeater are not allowed\. Use 'track by' expression to specify unique keys\. Repeater: item in items, Duplicate key: object:003, Duplicate value: {}/);
942+
expect($exceptionHandler.errors.shift().message).toMatch(
943+
/^\[ngRepeat:dupes\] Duplicates in a repeater are not allowed\. Use 'track by' expression to specify unique keys\. Repeater: item in items, Duplicate key: object:003, Duplicate value: {}/);
945944

946945
// recover
947946
scope.items = [a];
@@ -960,9 +959,8 @@ describe('ngRepeat', function() {
960959
it('should throw error on new duplicates and recover', function() {
961960
scope.items = [d, d, d];
962961
scope.$digest();
963-
expect($exceptionHandler.errors.shift().message).
964-
toMatch(
965-
/^\[ngRepeat:dupes\] Duplicates in a repeater are not allowed\. Use 'track by' expression to specify unique keys\. Repeater: item in items, Duplicate key: object:009, Duplicate value: {}/);
962+
expect($exceptionHandler.errors.shift().message).toMatch(
963+
/^\[ngRepeat:dupes\] Duplicates in a repeater are not allowed\. Use 'track by' expression to specify unique keys\. Repeater: item in items, Duplicate key: object:009, Duplicate value: {}/);
966964

967965
// recover
968966
scope.items = [a];

0 commit comments

Comments
 (0)