movido de directorio
This commit is contained in:
parent
90c6d2fe3e
commit
161514582d
|
@ -1,6 +1,6 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
describe('Receipt createReceipt', () => {
|
||||
describe('Client createReceipt', () => {
|
||||
const clientFk = 108;
|
||||
const payed = Date();
|
||||
const companyFk = 442;
|
||||
|
@ -20,7 +20,7 @@ describe('Receipt createReceipt', () => {
|
|||
}
|
||||
};
|
||||
|
||||
const receipt = await app.models.Receipt.createReceipt(ctx);
|
||||
const receipt = await app.models.Client.createReceipt(ctx);
|
||||
delete ctx.args.payed;
|
||||
|
||||
const till = await app.models.Till.findOne({
|
||||
|
@ -54,7 +54,7 @@ describe('Receipt createReceipt', () => {
|
|||
};
|
||||
|
||||
try {
|
||||
await app.models.Receipt.createReceipt(ctx);
|
||||
await app.models.Client.createReceipt(ctx);
|
||||
} catch (e) {
|
||||
error = e;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ describe('Receipt createReceipt', () => {
|
|||
compensationAccount: '4300000001'
|
||||
}
|
||||
};
|
||||
const receipt = await app.models.Receipt.createReceipt(ctx);
|
||||
const receipt = await app.models.Client.createReceipt(ctx);
|
||||
const receiptCompensated = await app.models.Receipt.findOne({
|
||||
where: {
|
||||
clientFk: 1,
|
||||
|
@ -115,7 +115,7 @@ describe('Receipt createReceipt', () => {
|
|||
compensationAccount: '4100000001'
|
||||
}
|
||||
};
|
||||
const receipt = await app.models.Receipt.createReceipt(ctx);
|
||||
const receipt = await app.models.Client.createReceipt(ctx);
|
||||
|
||||
const paymentCompensated = await app.models.Payment.findOne({
|
||||
where: {
|
Loading…
Reference in New Issue