2021-12-20 14:58:23 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
|
|
|
import * as smartmongo from '../ts/index';
|
|
|
|
|
|
|
|
let smartmongoInstance: smartmongo.SmartMongo;
|
|
|
|
|
|
|
|
tap.test('should create a mongo instance', async () => {
|
2021-12-20 15:58:17 +00:00
|
|
|
smartmongoInstance = await smartmongo.SmartMongo.createAndInit();
|
2021-12-20 14:58:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.test('should stop the instance', async () => {
|
|
|
|
await smartmongoInstance.stop();
|
|
|
|
})
|
|
|
|
|
|
|
|
tap.start();
|