This commit is contained in:
Javi Gallego 2021-01-08 15:22:41 +01:00
parent b5cd4e3c9f
commit a9ec319d4f
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,6 @@ fdescribe('Receipt createReceipt', () => {
const receipt = await app.models.Receipt.createReceipt(ctx);
delete ctx.args.payed;
expect(receipt).toEqual(jasmine.objectContaining(ctx.args));
const till = await models.Till.findOne({
where: {
@ -33,6 +32,8 @@ fdescribe('Receipt createReceipt', () => {
}
});
expect(receipt).toEqual(jasmine.objectContaining(ctx.args));
// restores
await receipt.destroy();
await till.destroy();