This commit is contained in:
Tom Moor
2020-12-24 10:18:53 -08:00
parent ad7400a4f5
commit a51af98d43
6 changed files with 155 additions and 90 deletions

View File

@ -20,13 +20,16 @@ describe("documentBatchImporter", () => {
type: "application/zip",
path: path.resolve(__dirname, "..", "test", "fixtures", name),
});
console.log(file);
await documentBatchImporter({
const response = await documentBatchImporter({
type: "outline",
user,
file,
ip,
});
expect(Object.keys(response.collections).length).toEqual(1);
expect(Object.keys(response.documents).length).toEqual(15);
expect(Object.keys(response.attachments).length).toEqual(6);
});
});