From 7f0eb1516165fcb73f1c9953018b7c9b70acfae1 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 3 May 2012 16:30:36 -0700 Subject: fix($compile): have $observe return registration function --- test/ng/compileSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ng/compileSpec.js') diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index c5592816..86ba3ade 100644 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -1255,7 +1255,7 @@ describe('$compile', function() { return function(scope, elm, attr) { observeSpy = jasmine.createSpy('$observe attr'); - attr.$observe('someAttr', observeSpy); + expect(attr.$observe('someAttr', observeSpy)).toBe(observeSpy); attrValueDuringLinking = attr.someAttr; }; }); -- cgit v1.2.3