We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefdaf1 commit 0960cd0Copy full SHA for 0960cd0
test/ng/directive/booleanAttrsSpec.js
@@ -131,15 +131,15 @@ describe('ngSrc', function() {
131
// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
132
// to set the property as well to achieve the desired effect
133
134
- var element = $compile('<div ng-src="some/{{id}}"></div>')($rootScope);
+ var element = $compile('<div ng-src="{{id}}"></div>')($rootScope);
135
136
$rootScope.$digest();
137
- expect(element.prop('src')).toEqual('some/');
+ expect(element.prop('src')).toBeUndefined();
138
139
$rootScope.$apply(function() {
140
$rootScope.id = 1;
141
});
142
- expect(element.prop('src')).toEqual('some/1');
+ expect(element.prop('src')).toEqual('1');
143
144
dealoc(element);
145
}));
0 commit comments