diff options
| author | Misko Hevery | 2011-11-22 21:28:39 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-01-25 11:50:37 -0800 |
| commit | 9ee2cdff44e7d496774b340de816344126c457b3 (patch) | |
| tree | 476ffcb4425e7160865029d6b57d41b766750285 /test/widget/selectSpec.js | |
| parent | 8af4fde18246ac1587b471a549e70d5d858bf0ee (diff) | |
| download | angular.js-9ee2cdff44e7d496774b340de816344126c457b3.tar.bz2 | |
refactor(directives): connect new compiler
- turn everything into a directive
Diffstat (limited to 'test/widget/selectSpec.js')
| -rw-r--r-- | test/widget/selectSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/widget/selectSpec.js b/test/widget/selectSpec.js index 5d92e674..7206ade8 100644 --- a/test/widget/selectSpec.js +++ b/test/widget/selectSpec.js @@ -13,7 +13,7 @@ describe('select', function() { } else { element = jqLite(html); } - $compile(element)($rootScope); + element = $compile(element)($rootScope); scope.$apply(); return scope; }; @@ -37,7 +37,7 @@ describe('select', function() { scope.b = 'bar'; scope.$digest(); - expect(scope.$element.text()).toBe('foobarC'); + expect(element.text()).toBe('foobarC'); }); it('should require', inject(function($formFactory) { |
