From eeead2cc864ac516da4e2eeec4a376c0a72a4269 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Mon, 18 Nov 2019 16:37:03 +0100 Subject: [PATCH] corrected a typo --- .../front/basic-data/step-one/index.spec.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/ticket/front/basic-data/step-one/index.spec.js b/modules/ticket/front/basic-data/step-one/index.spec.js index 4a985d017..690399131 100644 --- a/modules/ticket/front/basic-data/step-one/index.spec.js +++ b/modules/ticket/front/basic-data/step-one/index.spec.js @@ -69,7 +69,7 @@ describe('Ticket', () => { controller.ticket.addressFk = 99; controller.addressId = 100; const landed = new Date(); - const spectedResult = { + const expectedResult = { landed: landed, addressFk: 100, agencyModeFk: 7, @@ -77,7 +77,7 @@ describe('Ticket', () => { }; controller.landed = landed; - expect(controller.getShipped).toHaveBeenCalledWith(spectedResult); + expect(controller.getShipped).toHaveBeenCalledWith(expectedResult); expect(controller.ticket.addressFk).toEqual(100); }); }); @@ -96,7 +96,7 @@ describe('Ticket', () => { controller.ticket.warehouseId = 1; controller.warehouseId = 2; const landed = new Date(); - const spectedResult = { + const expectedResult = { landed: landed, addressFk: 121, agencyModeFk: 7, @@ -104,7 +104,7 @@ describe('Ticket', () => { }; controller.landed = landed; - expect(controller.getShipped).toHaveBeenCalledWith(spectedResult); + expect(controller.getShipped).toHaveBeenCalledWith(expectedResult); expect(controller.ticket.warehouseFk).toEqual(2); }); }); @@ -122,7 +122,7 @@ describe('Ticket', () => { it('should set shipped property and call getLanded() method ', () => { spyOn(controller, 'getLanded'); const shipped = new Date(); - const spectedResult = { + const expectedResult = { shipped: shipped, addressFk: 121, agencyModeFk: 7, @@ -130,7 +130,7 @@ describe('Ticket', () => { }; controller.shipped = shipped; - expect(controller.getLanded).toHaveBeenCalledWith(spectedResult); + expect(controller.getLanded).toHaveBeenCalledWith(expectedResult); }); }); @@ -147,7 +147,7 @@ describe('Ticket', () => { it('should set shipped property and call getShipped() method ', () => { spyOn(controller, 'getShipped'); const landed = new Date(); - const spectedResult = { + const expectedResult = { landed: landed, addressFk: 121, agencyModeFk: 7, @@ -156,7 +156,7 @@ describe('Ticket', () => { controller.landed = landed; - expect(controller.getShipped).toHaveBeenCalledWith(spectedResult); + expect(controller.getShipped).toHaveBeenCalledWith(expectedResult); }); }); @@ -173,7 +173,7 @@ describe('Ticket', () => { spyOn(controller, 'getLanded'); const shipped = new Date(); const agencyModeId = 8; - const spectedResult = { + const expectedResult = { shipped: shipped, addressFk: 121, agencyModeFk: agencyModeId, @@ -182,14 +182,14 @@ describe('Ticket', () => { controller.ticket.shipped = shipped; controller.agencyModeId = 8; - expect(controller.getLanded).toHaveBeenCalledWith(spectedResult); + expect(controller.getLanded).toHaveBeenCalledWith(expectedResult); }); it('should do nothing if attempting to set the same agencyMode id', () => { spyOn(controller, 'getShipped'); const landed = new Date(); const agencyModeId = 7; - const spectedResult = { + const expectedResult = { landed: landed, addressFk: 121, agencyModeFk: agencyModeId, @@ -198,7 +198,7 @@ describe('Ticket', () => { controller.ticket.landed = landed; controller.agencyModeId = 7; - expect(controller.getShipped).not.toHaveBeenCalledWith(spectedResult); + expect(controller.getShipped).not.toHaveBeenCalledWith(expectedResult); }); });