diff --git a/packages/helpers/src/plugin/__fixtures__/storage.json b/packages/helpers/src/plugin/__fixtures__/storage.json index f43d50f..327d230 100644 --- a/packages/helpers/src/plugin/__fixtures__/storage.json +++ b/packages/helpers/src/plugin/__fixtures__/storage.json @@ -1,4 +1,11 @@ { + "plugin": { + "staticConfig": { + "name": "value1", + "description": "value2" + }, + "dynamicConfig": null + }, "myPlugin": { "staticConfig": { "name": "value1", diff --git a/packages/helpers/src/plugin/plugin.config.store.test.ts b/packages/helpers/src/plugin/plugin.config.store.test.ts index acadac1..871b405 100644 --- a/packages/helpers/src/plugin/plugin.config.store.test.ts +++ b/packages/helpers/src/plugin/plugin.config.store.test.ts @@ -13,7 +13,7 @@ describe('PluginConfigStore', () => { }) it('should add and retrieve plugin configurations', async () => { - const pluginName = 'myPlugin' + const pluginName = 'plugin' const config = { name: 'value1', description: 'value2' } await store.addConfig(pluginName, { staticConfig: config }) @@ -46,7 +46,7 @@ describe('PluginConfigStore', () => { await store.addConfig(pluginName, { staticConfig: config }) await store.addConfig(pluginName, { staticConfig: config }) - expect(Object.values(store.store).length).toBe(1) + expect(Object.values(store.store).length).toBe(2) }) it('should inquire existing plugin configurations with args', async () => {