diff --git a/webapp/packages/plugin-data-viewer/src/DataViewerSettingsService.test.ts b/webapp/packages/plugin-data-viewer/src/DataViewerSettingsService.test.ts index 29691df910..6cefb37dd4 100644 --- a/webapp/packages/plugin-data-viewer/src/DataViewerSettingsService.test.ts +++ b/webapp/packages/plugin-data-viewer/src/DataViewerSettingsService.test.ts @@ -77,12 +77,14 @@ const testValueNew = false; const deprecatedSettings = { 'core.app.dataViewer.disableEdit': testValueDeprecated, - 'plugin.data-export.disabled': testValueDeprecated, + 'plugin.data-viewer.disabled': testValueDeprecated, + 'plugin_data_export.disabled': testValueDeprecated, }; const newSettings = { ...deprecatedSettings, 'plugin.data-viewer.disableEdit': testValueNew, + 'plugin.data-viewer.export.disabled': testValueNew, }; async function setupSettingsService(mockConfig: any = {}) { @@ -100,6 +102,8 @@ test('New settings override deprecated settings', async () => { const settingsService = await setupSettingsService(newSettings); expect(settingsService.disableEdit).toBe(testValueNew); + expect(settingsService.disableExportData).toBe(testValueNew); + expectNoDeprecatedSettingMessage(); }); @@ -107,6 +111,8 @@ test('Deprecated settings are used if new settings are not defined', async () => const settingsService = await setupSettingsService(deprecatedSettings); expect(settingsService.disableEdit).toBe(testValueDeprecated); + expect(settingsService.disableExportData).toBe(testValueDeprecated); + expectDeprecatedSettingMessage(); });