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