Skip to content

Commit

Permalink
add getUnusedConfigKeys test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jan 28, 2020
1 parent 4de85cd commit 5af2e9f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/core/server/legacy/config/get_unused_config_keys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,23 @@ describe('getUnusedConfigKeys', () => {
).toEqual(['foo.dolly']);
});

it('handles array values', async () => {
expect(
await getUnusedConfigKeys({
coreHandledConfigPaths: ['core', 'array'],
pluginSpecs: [],
disabledPluginSpecs: [],
settings: {
core: {
prop: 'value',
},
array: ['some', 'values'],
},
legacyConfig: getConfig({}),
})
).toEqual([]);
});

describe('using deprecation', () => {
it('should use the plugin deprecations provider', async () => {
expect(
Expand Down

0 comments on commit 5af2e9f

Please sign in to comment.