mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
add test for passed in params
This commit is contained in:
parent
6f8d258ccc
commit
fb3bf65d6b
1 changed files with 14 additions and 1 deletions
|
@ -34,7 +34,20 @@ define(function (require) {
|
|||
expect(destroySpy.callCount).to.be(1);
|
||||
});
|
||||
|
||||
it('should use passed in params');
|
||||
it('should use passed in params', function () {
|
||||
var params = {
|
||||
test: true,
|
||||
mock: false
|
||||
};
|
||||
|
||||
appState = new AppState(params);
|
||||
expect(appState).to.have.property('_defaults');
|
||||
|
||||
Object.keys(params).forEach(function (key) {
|
||||
expect(appState._defaults).to.have.property(key);
|
||||
expect(appState._defaults[key]).to.equal(params[key]);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue