smartmongo/test/test.ts

15 lines
378 B
TypeScript
Raw Normal View History

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 16:07:39 +00:00
smartmongoInstance = await smartmongo.SmartMongo.createAndStart();
2021-12-20 14:58:23 +00:00
});
tap.test('should stop the instance', async () => {
await smartmongoInstance.stop();
})
tap.start();