Skip to content

Commit

Permalink
Fix integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Dec 3, 2021
1 parent 5f7d1c6 commit f069f2e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/core/server/config/integration_tests/config_deprecation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ describe('configuration deprecations', () => {
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()).toEqual(
expect.arrayContaining([
'"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.',
])
);
});

it('should log deprecation warnings for core deprecations', async () => {
Expand All @@ -49,12 +49,12 @@ describe('configuration deprecations', () => {
await root.setup();

const logs = loggingSystemMock.collect(mockLoggingSystem);
expect(logs.warn.flat()).toMatchInlineSnapshot(`
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. ",
]
`);
expect(logs.warn.flat()).toEqual(
expect.arrayContaining([
'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.',
])
);
});
});

0 comments on commit f069f2e

Please sign in to comment.