Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
cc9bf3f367
|
@ -4,7 +4,7 @@ describe('Claim Create', () => {
|
||||||
let newDate = new Date();
|
let newDate = new Date();
|
||||||
let createdClaimFk;
|
let createdClaimFk;
|
||||||
|
|
||||||
afterAll(async() => {
|
afterAll(async () => {
|
||||||
await app.models.Claim.destroyById(createdClaimFk);
|
await app.models.Claim.destroyById(createdClaimFk);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ describe('Claim Create', () => {
|
||||||
|
|
||||||
let params = {claim: newClaim, sales: newSale};
|
let params = {claim: newClaim, sales: newSale};
|
||||||
|
|
||||||
it('should create a new claim', async() => {
|
it('should create a new claim', async () => {
|
||||||
let claim = await app.models.Claim.createFromSales(params);
|
let claim = await app.models.Claim.createFromSales(params);
|
||||||
|
|
||||||
expect(claim.ticketFk).toEqual(newClaim.ticketFk);
|
expect(claim.ticketFk).toEqual(newClaim.ticketFk);
|
||||||
|
@ -39,7 +39,7 @@ describe('Claim Create', () => {
|
||||||
createdClaimFk = claim.id;
|
createdClaimFk = claim.id;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not be able to create a claim if exists that sale', async() => {
|
it('should not be able to create a claim if exists that sale', async () => {
|
||||||
let error;
|
let error;
|
||||||
|
|
||||||
await app.models.Claim.createFromSales(params)
|
await app.models.Claim.createFromSales(params)
|
||||||
|
|
Loading…
Reference in New Issue