fix(core): update
This commit is contained in:
@ -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 () => {
|
||||
|
Reference in New Issue
Block a user