mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[server/uiSettings] fix da tests
This commit is contained in:
parent
7feacf6a70
commit
c2d7d0136a
2 changed files with 2 additions and 1 deletions
|
@ -322,6 +322,7 @@ function instantiate({ getResult } = {}) {
|
|||
const configGet = sinon.stub();
|
||||
configGet.withArgs('kibana.index').returns('.kibana');
|
||||
configGet.withArgs('pkg.version').returns('1.2.3-test');
|
||||
configGet.withArgs('uiSettings.enabled').returns(true);
|
||||
const config = {
|
||||
get: configGet
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@ import defaultsProvider from './defaults';
|
|||
export default function setupSettings(kbnServer, server, config) {
|
||||
const status = kbnServer.status.create('ui settings');
|
||||
|
||||
if (!kbnServer.config.get('uiSettings.enabled')) {
|
||||
if (!config.get('uiSettings.enabled')) {
|
||||
status.disabled('uiSettings.enabled config is set to `false`');
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue