arreglo bug en createFromSales backTest

This commit is contained in:
Javi Gallego 2018-09-20 07:49:38 +02:00
parent bd6bebaf49
commit 03c6aef542
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ describe('Claim Create', () => {
let params = {claim: newClaim, sales: newSale};
it('should create a new claim', async() => {
let claim = await app.models.Claim.update(params);
let claim = await app.models.Claim.createFromSales(params);
expect(claim.ticketFk).toEqual(newClaim.ticketFk);
expect(claim.clientFk).toEqual(newClaim.clientFk);