fix: frontTest
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-11-14 15:11:33 +01:00
parent 216108a576
commit 0637050375
1 changed files with 3 additions and 2 deletions

View File

@ -76,9 +76,10 @@ describe('Ticket', () => {
it('should make a query and then call to the $state go() method', () => { it('should make a query and then call to the $state go() method', () => {
jest.spyOn(controller.$state, 'go').mockReturnThis(); jest.spyOn(controller.$state, 'go').mockReturnThis();
const landed = new Date();
const ticket = { const ticket = {
clientFk: 1101, clientFk: 1101,
landed: new Date(), landed: landed,
addressFk: 121, addressFk: 121,
agencyModeFk: 1, agencyModeFk: 1,
warehouseFk: 1 warehouseFk: 1
@ -90,7 +91,7 @@ describe('Ticket', () => {
const expectedParams = { const expectedParams = {
clientId: 1101, clientId: 1101,
landed: new Date(), landed: landed,
warehouseId: 1, warehouseId: 1,
addressId: 121, addressId: 121,
agencyModeId: 1, agencyModeId: 1,