From 29309e0e5a5f5eafd0f948100417d63127d3332d Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 7 Apr 2010 10:35:54 -0700 Subject: [PATCH] jstd failing test case for cory --- src/widgets.js | 2 ++ test/widgetsSpec.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/widgets.js b/src/widgets.js index 3e9ba236..012f13e2 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -225,5 +225,7 @@ angularWidget('NG:SWITCH', function ngSwitch(element){ return on == when; }, route: function(on, when) { + this.name = 'misko'; + return true; } }); diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 93c7adda..88ca3f87 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -210,6 +210,7 @@ describe('ng:switch', function(){ var scope = compile('
{{name}}
'); scope.url = '/Book/Moby'; scope.$init(); +// jstestdriver.console.log('text'); expect(scope.$element.text()).toEqual('Moby'); });