File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ describe('ngSrc', function() {
131
131
// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
132
132
// to set the property as well to achieve the desired effect
133
133
134
- var element = $compile ( '<div ng-src="https://github.com/%3Cspan%20class="x x-first x-last">some/ {{id}}"></div>') ( $rootScope ) ;
134
+ var element = $compile ( '<div ng-src="https://github.com/%7B%7Bid%7D%7D"></div>' ) ( $rootScope ) ;
135
135
136
136
$rootScope . $digest ( ) ;
137
- expect ( element . prop ( 'src' ) ) . toEqual ( 'some/' ) ;
137
+ expect ( element . prop ( 'src' ) ) . toBeUndefined ( ) ;
138
138
139
139
$rootScope . $apply ( function ( ) {
140
140
$rootScope . id = 1 ;
141
141
} ) ;
142
- expect ( element . prop ( 'src' ) ) . toEqual ( 'some/ 1' ) ;
142
+ expect ( element . prop ( 'src' ) ) . toEqual ( '1' ) ;
143
143
144
144
dealoc ( element ) ;
145
145
} ) ) ;
You can’t perform that action at this time.
0 commit comments