diff options
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 8e5a10ee..2d4703a2 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -3,11 +3,9 @@ describe("directive", function(){ var compile, model, element; beforeEach(function() { - var compiler = new Compiler(angularTextMarkup, angularAttrMarkup, angularDirective, angularWidget); compile = function(html) { element = jqLite(html); - model = compiler.compile(element)(element); - return model; + return model = angular.compile(element)().scope; }; }); |
