aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CompilerSpec.js2
-rw-r--r--test/widgetsSpec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index da354ea5..3736ff4e 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -22,7 +22,7 @@ describe('compiler', function(){
};
textMarkup = [];
attrMarkup = [];
- widgets = {};
+ widgets = extensionMap({}, 'widget');
compiler = new Compiler(textMarkup, attrMarkup, directives, widgets);
compile = function(html){
var e = jqLite("<div>" + html + "</div>");
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 03f31bfe..ad98e482 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -407,7 +407,7 @@ describe("widget", function(){
it("should match sandwich ids", function(){
var scope = {};
- var match = angular.widget['NG:SWITCH'].route.call(scope, '/a/123/b', '/a/:id');
+ var match = angular.widget('NG:SWITCH').route.call(scope, '/a/123/b', '/a/:id');
expect(match).toBeFalsy();
});