yet another IT fix

This commit is contained in:
pgayvallet 2021-09-21 13:10:21 +02:00
parent 8c0d87301c
commit e1d6174eea

View file

@ -23,18 +23,14 @@ describe('configuration deprecations', () => {
}
});
it('should not log deprecation warnings for default configuration that is not one of `logging.verbose`, `logging.quiet` or `logging.silent`', async () => {
it('should not log deprecation warnings for default configuration', async () => {
root = kbnTestServer.createRoot();
await root.preboot();
await root.setup();
const logs = loggingSystemMock.collect(mockLoggingSystem);
expect(logs.warn.flat()).toMatchInlineSnapshot(`
Array [
"\\"logging.silent\\" has been deprecated and will be removed in 8.0. Moving forward, you can use \\"logging.root.level:off\\" in your logging configuration. ",
]
`);
expect(logs.warn.flat()).toHaveLength(0);
});
it('should log deprecation warnings for core deprecations', async () => {
@ -53,7 +49,6 @@ describe('configuration deprecations', () => {
Array [
"You no longer need to configure \\"optimize.lazy\\".",
"You no longer need to configure \\"optimize.lazyPort\\".",
"\\"logging.silent\\" has been deprecated and will be removed in 8.0. Moving forward, you can use \\"logging.root.level:off\\" in your logging configuration. ",
]
`);
});