Skip to content

Commit 80ae614

Browse files
committed
fix(ngSrcset): fix test of undefined data-ng-attr-srcset
Closes angular#14470
1 parent e4befa9 commit 80ae614

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/ng/directive/ngSrcsetSpec.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ describe('ngSrcset', function() {
3030
}));
3131

3232
it('should not throw an error if undefined', inject(function($rootScope, $compile) {
33-
$rootScope.imageUrl = {};
34-
element = $compile('<img ng-srcset="{{undefined}}">')($rootScope);
33+
element = $compile('<img data-ng-attr-srcset="{{undefined}}">')($rootScope);
3534
$rootScope.$digest();
36-
expect(element.attr('srcset')).toBe(undefined);
3735
}));
3836
});
3937

0 commit comments

Comments
 (0)