fix(core): update
This commit is contained in:
@@ -19,7 +19,6 @@ let testDb: smartdata.SmartdataDb;
|
||||
let smartdataOptions: smartdata.IMongoDescriptor;
|
||||
let mongod: mongoPlugin.MongoMemoryServer;
|
||||
|
||||
|
||||
tap.test('should create a testinstance as database', async () => {
|
||||
mongod = new mongoPlugin.MongoMemoryServer({});
|
||||
console.log('created mongod instance');
|
||||
@@ -47,14 +46,14 @@ tap.test('should create an easystore', async () => {
|
||||
await easyStore.writeKey('key1', 'hello');
|
||||
const retrievedKey = await easyStore.readKey('key1');
|
||||
expect(retrievedKey).to.equal('hello');
|
||||
})
|
||||
});
|
||||
|
||||
tap.test('close', async () => {
|
||||
testDb.close();
|
||||
mongod.stop();
|
||||
setTimeout(() => {
|
||||
process.exit(0);
|
||||
}, 1000)
|
||||
})
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user