fix(core): update
This commit is contained in:
parent
54060deb8f
commit
cf1ec7f9eb
@ -19,7 +19,7 @@ let testDb: smartdata.SmartdataDb;
|
||||
let smartdataOptions: smartdata.IMongoDescriptor;
|
||||
let mongod: mongoPlugin.MongoMemoryServer;
|
||||
|
||||
tap.test('should create a testinstance as database', async () => {
|
||||
tap.skip.test('should create a testinstance as database', async () => {
|
||||
mongod = await mongoPlugin.MongoMemoryServer.create();
|
||||
console.log('created mongod instance');
|
||||
console.log('mongod started');
|
||||
@ -31,6 +31,14 @@ tap.test('should create a testinstance as database', async () => {
|
||||
await testDb.init();
|
||||
});
|
||||
|
||||
tap.test('should connect to atlas', async (tools) => {
|
||||
const databaseName = `test-smartdata-${smartunique.shortId()}`;
|
||||
testDb = new smartdata.SmartdataDb({
|
||||
mongoDbUrl: testQenv.getEnvVarOnDemand('MONGO_URL'),
|
||||
mongoDbName: databaseName,
|
||||
});
|
||||
});
|
||||
|
||||
let easyStore: smartdata.EasyStore<{
|
||||
key1: string;
|
||||
key2: string;
|
||||
|
Loading…
Reference in New Issue
Block a user