@@ -4,6 +4,7 @@ import { DbConfigStore } from '../../../src/databases/db-config-store';
44import { expect } from 'chai' ;
55
66describe ( 'db config store' , async ( ) => {
7+ const extensionPath = path . join ( __dirname , '../../..' ) ;
78 const tempWorkspaceStoragePath = path . join ( __dirname , 'test-workspace' ) ;
89 const testDataStoragePath = path . join ( __dirname , 'data' ) ;
910
@@ -18,7 +19,7 @@ describe('db config store', async () => {
1819 it ( 'should create a new config if one does not exist' , async ( ) => {
1920 const configPath = path . join ( tempWorkspaceStoragePath , 'workspace-databases.json' ) ;
2021
21- const configStore = new DbConfigStore ( tempWorkspaceStoragePath ) ;
22+ const configStore = new DbConfigStore ( tempWorkspaceStoragePath , extensionPath ) ;
2223 await configStore . initialize ( ) ;
2324
2425 expect ( await fs . pathExists ( configPath ) ) . to . be . true ;
@@ -29,7 +30,7 @@ describe('db config store', async () => {
2930 } ) ;
3031
3132 it ( 'should load an existing config' , async ( ) => {
32- const configStore = new DbConfigStore ( testDataStoragePath ) ;
33+ const configStore = new DbConfigStore ( testDataStoragePath , extensionPath ) ;
3334 await configStore . initialize ( ) ;
3435
3536 const config = configStore . getConfig ( ) ;
@@ -44,7 +45,7 @@ describe('db config store', async () => {
4445 } ) ;
4546
4647 it ( 'should not allow modification of the config' , async ( ) => {
47- const configStore = new DbConfigStore ( testDataStoragePath ) ;
48+ const configStore = new DbConfigStore ( testDataStoragePath , extensionPath ) ;
4849 await configStore . initialize ( ) ;
4950
5051 const config = configStore . getConfig ( ) ;
0 commit comments