mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
stub out some tests
This commit is contained in:
parent
adca72a769
commit
04197c10e8
2 changed files with 44 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
|||
'specs/filters/start_from',
|
||||
'specs/services/storage',
|
||||
'specs/services/persisted_log',
|
||||
'specs/services/url',
|
||||
'specs/utils/datemath',
|
||||
'specs/utils/interval',
|
||||
'specs/utils/versionmath',
|
||||
|
|
43
test/unit/specs/services/url.js
Normal file
43
test/unit/specs/services/url.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
define(function (require) {
|
||||
var sinon = require('test_utils/auto_release_sinon');
|
||||
|
||||
require('components/url/url');
|
||||
|
||||
function init() {
|
||||
module('kibana/url', function ($provide) {
|
||||
// mock storage service
|
||||
$provide.service('$route', function () {
|
||||
});
|
||||
});
|
||||
|
||||
inject(function ($injector) {
|
||||
});
|
||||
}
|
||||
|
||||
describe('kbnUrl', function () {
|
||||
beforeEach(function () {
|
||||
init();
|
||||
});
|
||||
|
||||
describe('change', function () {
|
||||
it('should change the url');
|
||||
it('should allow forceReload as the 2nd param');
|
||||
it('should replace template params');
|
||||
it('should rison encode template parameters');
|
||||
it('should throw when params are missing');
|
||||
});
|
||||
|
||||
describe('change reloading', function () {
|
||||
it('should reload on new url');
|
||||
it('should reload when forceReload is true');
|
||||
it('should not reload when url is the same');
|
||||
it('should not reload when another reload is running');
|
||||
});
|
||||
|
||||
describe('match', function () {
|
||||
it('should return null if no route is set');
|
||||
it('should return true when matching route');
|
||||
it('should return false when not matching route');
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue