Index: test/test_browser_app.js |
=== modified file 'test/test_browser_app.js' |
--- test/test_browser_app.js 2013-06-07 17:11:13 +0000 |
+++ test/test_browser_app.js 2013-06-10 18:47:20 +0000 |
@@ -200,10 +200,19 @@ |
}); |
}); |
+ beforeEach(function() { |
+ // Mock out a dummy location for the Store used in view instances. |
+ window.juju_config = { |
+ charmworldURL: 'http://localhost' |
+ }; |
+ }); |
+ |
afterEach(function() { |
if (app) { |
app.destroy(); |
} |
+ |
+ window.juju_config = undefined; |
}); |
it('verify that route callables exist', function() { |
@@ -241,11 +250,9 @@ |
path: '/' |
}; |
- |
app.routeSidebarDefault(req, null, next); |
// The viewmode should be populated now to the default. |
assert.equal(req.params.viewmode, 'sidebar'); |
- |
}); |
it('prevents * route from doing more than sidebar by default', function() { |
@@ -274,7 +281,6 @@ |
assert.equal(req.params.id, 'precise/mysql-10'); |
}); |
- |
it('/charm/id router ignores other urls', function() { |
app = new browser.Browser(); |
// Stub out the sidebar so we don't render anything. |