OLD | NEW |
| 1 /* |
| 2 This file is part of the Juju GUI, which lets users view and manage Juju |
| 3 environments within a graphical interface (https://launchpad.net/juju-gui). |
| 4 Copyright (C) 2012-2013 Canonical Ltd. |
| 5 |
| 6 This program is free software: you can redistribute it and/or modify it under |
| 7 the terms of the GNU Affero General Public License version 3, as published by |
| 8 the Free Software Foundation. |
| 9 |
| 10 This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 12 SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero |
| 13 General Public License for more details. |
| 14 |
| 15 You should have received a copy of the GNU Affero General Public License along |
| 16 with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 */ |
| 18 |
1 'use strict'; | 19 'use strict'; |
2 | 20 |
3 // A global variable required for testing feature flags. | 21 // A global variable required for testing feature flags. |
4 var flags = {}; | 22 var flags = {}; |
5 | 23 |
6 describe('Namespaced Routing', function() { | 24 describe('Namespaced Routing', function() { |
7 var Y, juju, app; | 25 var Y, juju, app; |
8 | 26 |
9 before(function(done) { | 27 before(function(done) { |
10 Y = YUI(GlobalConfig).use(['juju-gui'], function(Y) { | 28 Y = YUI(GlobalConfig).use(['juju-gui'], function(Y) { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 175 |
158 }); | 176 }); |
159 | 177 |
160 it('should monkey patch Y.Router with querystring parser', function() { | 178 it('should monkey patch Y.Router with querystring parser', function() { |
161 var testString = 'category=databases&category=file_servers'; | 179 var testString = 'category=databases&category=file_servers'; |
162 Y.Router._parseQuery(testString).should.eql( | 180 Y.Router._parseQuery(testString).should.eql( |
163 {category: ['databases', 'file_servers']}); | 181 {category: ['databases', 'file_servers']}); |
164 }); | 182 }); |
165 | 183 |
166 }); | 184 }); |
OLD | NEW |