Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
joan 2018-11-06 09:03:59 +01:00
commit cc9bf3f367
1 changed files with 3 additions and 3 deletions

View File

@ -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)