diff --git a/test/directivesSpec.js b/test/directivesSpec.js index bb530128..58e5053f 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -111,7 +111,7 @@ describe("directive", function(){ describe('ng:bind-attr', function(){ it('should bind attributes', function(){ - var scope = compile(''); + var scope = compile('
'); expect(element.attr('src')).toEqual('http://localhost/mysrc'); expect(element.attr('alt')).toEqual('myalt'); }); diff --git a/test/markupSpec.js b/test/markupSpec.js index a457efae..ce44d88c 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -34,7 +34,7 @@ describe("markups", function(){ }); it('should translate {{}} in attributes', function(){ - compile(''); + compile('
'); expect(element.attr('ng:bind-attr')).toEqual('{"src":"http://server/{{path}}.png"}'); scope.$set('path', 'a/b'); scope.$eval(); @@ -142,7 +142,7 @@ describe("markups", function(){ }); it('should bind src', function() { - compile(''); + compile('
'); scope.url = 'http://localhost/'; scope.$eval(); expect(element.attr('src')).toEqual('http://localhost/');