mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat(plugin-data-viewer): CB-2375 Fix tests
This commit is contained in:
@@ -66,15 +66,13 @@ const equalConfigB = {
|
||||
},
|
||||
};
|
||||
|
||||
async function setupSettingsService(mockConfig?: any) {
|
||||
async function setupSettingsService(mockConfig: any = {}) {
|
||||
const settings = app.injector.getServiceByClass(DataViewerSettingsService);
|
||||
const config = app.injector.getServiceByClass(ServerConfigResource);
|
||||
|
||||
if (mockConfig) {
|
||||
server.use(
|
||||
endpoint.query('serverConfig', mockServerConfig(mockConfig)),
|
||||
);
|
||||
}
|
||||
server.use(
|
||||
endpoint.query('serverConfig', mockServerConfig(mockConfig)),
|
||||
);
|
||||
|
||||
await config.refresh();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user