From 7cef4358aea6f3cfa18dcfb8145d7bc0560bf157 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 15 Jul 2010 14:16:04 -0700 Subject: fixed build --- test/AngularSpec.js | 4 ++++ test/directivesSpec.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/AngularSpec.js b/test/AngularSpec.js index de724f03..6d462b14 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -1,3 +1,7 @@ +beforeEach(function(){ + compileCache = {}; +}); + describe('Angular', function(){ xit('should fire on updateEvents', function(){ var onUpdateView = jasmine.createSpy(); diff --git a/test/directivesSpec.js b/test/directivesSpec.js index fb1e868a..dffc8906 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -73,12 +73,12 @@ describe("directives", function(){ }); it('should have $element set to current bind element', function(){ - var innerText; + var innerText = 'blank'; angularFilter.myFilter = function(text){ innerText = this.$element.text(); return text; }; - var scope = compile('
before
INNER
after
'); + var scope = compile('
beforeINNERafter
'); expect(scope.$element.text()).toEqual("beforeHELLOafter"); expect(innerText).toEqual('INNER'); }); @@ -206,7 +206,7 @@ describe("directives", function(){ expect(element.hasClass('ng-exception')).toBeFalsy(); }); - it('should preserve and remove previus style', function(){ + it('should preserve and remove previous style', function(){ var scope = compile('
'); scope.$eval(); expect(getStyle(element)).toEqual({color:'red'}); -- cgit v1.2.3