fix: Failure case during account provision that can result in no welcome collection

This commit is contained in:
Tom Moor
2021-07-26 13:46:55 -04:00
parent c9bd3bbf45
commit 6815c940b2
2 changed files with 17 additions and 4 deletions

View File

@ -189,7 +189,8 @@ describe("accountProvisioner", () => {
expect(isNewUser).toEqual(true);
expect(sendEmail).toHaveBeenCalled();
// should provision welcome collection
const collectionCount = await Collection.count();
expect(collectionCount).toEqual(0);
expect(collectionCount).toEqual(1);
});
});