Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2395bf6

Browse files
committed
test(jqLite): adapt tests to new expando name
1 parent 2e5fe84 commit 2395bf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/AngularSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ describe('angular', function() {
795795
expect(function () {
796796
angular.bootstrap(element);
797797
}).toThrowMatching(
798-
/\[ng:btstrpd\] App Already Bootstrapped with this Element '<div class="?ng\-scope"?( ng\-[0-9]+="?[0-9]+"?)?>'/i
798+
/\[ng:btstrpd\] App Already Bootstrapped with this Element '<div class="?ng\-scope"?( ng[0-9]+="?[0-9]+"?)?>'/i
799799
);
800800

801801
dealoc(element);

test/helpers/testabilityPatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function sortedHtml(element, showNgClass) {
166166
attr.name !='style' &&
167167
attr.name.substr(0, 6) != 'jQuery') {
168168
// in IE we need to check for all of these.
169-
if (/ng-\d+/.exec(attr.name) ||
169+
if (/ng\d+/.exec(attr.name) ||
170170
attr.name == 'getElementById' ||
171171
// IE7 has `selected` in attributes
172172
attr.name == 'selected' ||

0 commit comments

Comments
 (0)