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

Commit 2ea23e0

Browse files
Nick Andersonpetebacondarwin
Nick Anderson
authored andcommitted
test(ngRepeat): fix test setup for ngRepeat stability test
The repeated template contained `{{key}}:{{val}}` but the repeat expression was `"item in items"`, so `key` and `val` were not actually available. The tests were passing anyway, since they did not rely upon the actual text content of the template. Closes #11761
1 parent f166308 commit 2ea23e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ng/directive/ngRepeatSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ describe('ngRepeat', function() {
10841084
beforeEach(function() {
10851085
element = $compile(
10861086
'<ul>' +
1087-
'<li ng-repeat="item in items">{{key}}:{{val}}|></li>' +
1087+
'<li ng-repeat="item in items">{{item}}</li>' +
10881088
'</ul>')(scope);
10891089
a = {};
10901090
b = {};

0 commit comments

Comments
 (0)