test
This commit is contained in:
parent
b5cd4e3c9f
commit
a9ec319d4f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue