OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Juju GUI, which lets users view and manage Juju | 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). | 3 environments within a graphical interface (https://launchpad.net/juju-gui). |
4 Copyright (C) 2012-2013 Canonical Ltd. | 4 Copyright (C) 2012-2013 Canonical Ltd. |
5 | 5 |
6 This program is free software: you can redistribute it and/or modify it under | 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 | 7 the terms of the GNU Affero General Public License version 3, as published by |
8 the Free Software Foundation. | 8 the Free Software Foundation. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, but WITHOUT | 10 This program is distributed in the hope that it will be useful, but WITHOUT |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 assert.equal(data.result.length, 6); | 299 assert.equal(data.result.length, 6); |
300 // Each of these is a category and should have an id that starts with | 300 // Each of these is a category and should have an id that starts with |
301 // cat: to help us ID them. | 301 // cat: to help us ID them. |
302 data.result.forEach(function(suggestion) { | 302 data.result.forEach(function(suggestion) { |
303 assert.equal(suggestion.charm.id.substr(0, 4), 'cat:'); | 303 assert.equal(suggestion.charm.id.substr(0, 4), 'cat:'); |
304 }); | 304 }); |
305 done(); | 305 done(); |
306 }); | 306 }); |
307 }); | 307 }); |
308 | 308 |
309 | |
310 }); | 309 }); |
OLD | NEW |