fix(core): update

This commit is contained in:
2022-06-06 16:01:25 +02:00
parent a877616739
commit 2d2bb50578
3 changed files with 37 additions and 13 deletions

View File

@ -27,10 +27,7 @@ tap.test('should add a mongotarget to mongodump instance', async () => {
tap.test('should dump a collection to a directory', async () => {
const target = await testMongodump.addMongoTargetByMongoDescriptor(await testSmartMongo.getMongoDescriptor());
const collections = await target.getCollections();
for (const collection of collections) {
await target.dumpCollectionToDir(collection, '.nogit', doc => doc.id);
}
await target.dumpAllCollectionsToDir('.nogit', docArg => docArg.id, true);
})
tap.test('should stop the smartmongo instance', async () => {