aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/compileSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/compileSpec.js')
-rw-r--r--test/ng/compileSpec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index 3b69f609..da8f2f8c 100644
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -1381,9 +1381,10 @@ describe('$compile', function() {
}));
- it('should set interpolated attrs to undefined', inject(function($rootScope, $compile) {
+ it('should set interpolated attrs to initial interpolation value', inject(function($rootScope, $compile) {
+ $rootScope.whatever = 'test value';
$compile('<div some-attr="{{whatever}}" observer></div>')($rootScope);
- expect(directiveAttrs.someAttr).toBeUndefined();
+ expect(directiveAttrs.someAttr).toBe($rootScope.whatever);
}));