We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4befa9 commit 80ae614Copy full SHA for 80ae614
test/ng/directive/ngSrcsetSpec.js
@@ -30,10 +30,8 @@ describe('ngSrcset', function() {
30
}));
31
32
it('should not throw an error if undefined', inject(function($rootScope, $compile) {
33
- $rootScope.imageUrl = {};
34
- element = $compile('<img ng-srcset="{{undefined}}">')($rootScope);
+ element = $compile('<img data-ng-attr-srcset="{{undefined}}">')($rootScope);
35
$rootScope.$digest();
36
- expect(element.attr('srcset')).toBe(undefined);
37
38
});
39
0 commit comments