add app state test

This commit is contained in:
Joe Fleming 2014-09-30 14:37:14 -07:00
parent 82870ec4a4
commit fa394f6d70
2 changed files with 34 additions and 0 deletions

View file

@ -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',

View 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');
});
});
});