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

Commit cbc5f1c

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 4dfb80d commit cbc5f1c

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
@@ -1083,7 +1083,7 @@ describe('ngRepeat', function() {
10831083
beforeEach(function() {
10841084
element = $compile(
10851085
'<ul>' +
1086-
'<li ng-repeat="item in items">{{key}}:{{val}}|></li>' +
1086+
'<li ng-repeat="item in items">{{item}}</li>' +
10871087
'</ul>')(scope);
10881088
a = {};
10891089
b = {};

0 commit comments

Comments
 (0)