mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
add app state test
This commit is contained in:
parent
82870ec4a4
commit
fa394f6d70
2 changed files with 34 additions and 0 deletions
|
@ -106,6 +106,7 @@
|
|||
'specs/factories/base_object',
|
||||
'specs/state_management/state',
|
||||
'specs/state_management/global_state',
|
||||
'specs/state_management/app_state',
|
||||
'specs/utils/diff_object',
|
||||
'specs/factories/events',
|
||||
'specs/vislib/color',
|
||||
|
|
33
test/unit/specs/state_management/app_state.js
Normal file
33
test/unit/specs/state_management/app_state.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
define(function (require) {
|
||||
var sinon = require('test_utils/auto_release_sinon');
|
||||
require('components/state_management/app_state');
|
||||
|
||||
describe('State Management', function () {
|
||||
var $rootScope, $location, AppState;
|
||||
|
||||
beforeEach(function () {
|
||||
module('kibana');
|
||||
|
||||
inject(function (_$location_, Private) {
|
||||
$location = _$location_;
|
||||
AppState = Private(require('components/state_management/app_state'));
|
||||
});
|
||||
});
|
||||
|
||||
describe('App State', function () {
|
||||
var appState;
|
||||
|
||||
beforeEach(function () {
|
||||
appState = new AppState();
|
||||
});
|
||||
|
||||
it('should have a destroy method', function () {
|
||||
expect(appState).to.have.property('destroy');
|
||||
});
|
||||
|
||||
it('should use passed in params');
|
||||
|
||||
it('should be destroyed on route change');
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue