corrected a typo
This commit is contained in:
parent
04b4f60c48
commit
eeead2cc86
|
@ -69,7 +69,7 @@ describe('Ticket', () => {
|
||||||
controller.ticket.addressFk = 99;
|
controller.ticket.addressFk = 99;
|
||||||
controller.addressId = 100;
|
controller.addressId = 100;
|
||||||
const landed = new Date();
|
const landed = new Date();
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
landed: landed,
|
landed: landed,
|
||||||
addressFk: 100,
|
addressFk: 100,
|
||||||
agencyModeFk: 7,
|
agencyModeFk: 7,
|
||||||
|
@ -77,7 +77,7 @@ describe('Ticket', () => {
|
||||||
};
|
};
|
||||||
controller.landed = landed;
|
controller.landed = landed;
|
||||||
|
|
||||||
expect(controller.getShipped).toHaveBeenCalledWith(spectedResult);
|
expect(controller.getShipped).toHaveBeenCalledWith(expectedResult);
|
||||||
expect(controller.ticket.addressFk).toEqual(100);
|
expect(controller.ticket.addressFk).toEqual(100);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -96,7 +96,7 @@ describe('Ticket', () => {
|
||||||
controller.ticket.warehouseId = 1;
|
controller.ticket.warehouseId = 1;
|
||||||
controller.warehouseId = 2;
|
controller.warehouseId = 2;
|
||||||
const landed = new Date();
|
const landed = new Date();
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
landed: landed,
|
landed: landed,
|
||||||
addressFk: 121,
|
addressFk: 121,
|
||||||
agencyModeFk: 7,
|
agencyModeFk: 7,
|
||||||
|
@ -104,7 +104,7 @@ describe('Ticket', () => {
|
||||||
};
|
};
|
||||||
controller.landed = landed;
|
controller.landed = landed;
|
||||||
|
|
||||||
expect(controller.getShipped).toHaveBeenCalledWith(spectedResult);
|
expect(controller.getShipped).toHaveBeenCalledWith(expectedResult);
|
||||||
expect(controller.ticket.warehouseFk).toEqual(2);
|
expect(controller.ticket.warehouseFk).toEqual(2);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -122,7 +122,7 @@ describe('Ticket', () => {
|
||||||
it('should set shipped property and call getLanded() method ', () => {
|
it('should set shipped property and call getLanded() method ', () => {
|
||||||
spyOn(controller, 'getLanded');
|
spyOn(controller, 'getLanded');
|
||||||
const shipped = new Date();
|
const shipped = new Date();
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
shipped: shipped,
|
shipped: shipped,
|
||||||
addressFk: 121,
|
addressFk: 121,
|
||||||
agencyModeFk: 7,
|
agencyModeFk: 7,
|
||||||
|
@ -130,7 +130,7 @@ describe('Ticket', () => {
|
||||||
};
|
};
|
||||||
controller.shipped = shipped;
|
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 ', () => {
|
it('should set shipped property and call getShipped() method ', () => {
|
||||||
spyOn(controller, 'getShipped');
|
spyOn(controller, 'getShipped');
|
||||||
const landed = new Date();
|
const landed = new Date();
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
landed: landed,
|
landed: landed,
|
||||||
addressFk: 121,
|
addressFk: 121,
|
||||||
agencyModeFk: 7,
|
agencyModeFk: 7,
|
||||||
|
@ -156,7 +156,7 @@ describe('Ticket', () => {
|
||||||
controller.landed = landed;
|
controller.landed = landed;
|
||||||
|
|
||||||
|
|
||||||
expect(controller.getShipped).toHaveBeenCalledWith(spectedResult);
|
expect(controller.getShipped).toHaveBeenCalledWith(expectedResult);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ describe('Ticket', () => {
|
||||||
spyOn(controller, 'getLanded');
|
spyOn(controller, 'getLanded');
|
||||||
const shipped = new Date();
|
const shipped = new Date();
|
||||||
const agencyModeId = 8;
|
const agencyModeId = 8;
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
shipped: shipped,
|
shipped: shipped,
|
||||||
addressFk: 121,
|
addressFk: 121,
|
||||||
agencyModeFk: agencyModeId,
|
agencyModeFk: agencyModeId,
|
||||||
|
@ -182,14 +182,14 @@ describe('Ticket', () => {
|
||||||
controller.ticket.shipped = shipped;
|
controller.ticket.shipped = shipped;
|
||||||
controller.agencyModeId = 8;
|
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', () => {
|
it('should do nothing if attempting to set the same agencyMode id', () => {
|
||||||
spyOn(controller, 'getShipped');
|
spyOn(controller, 'getShipped');
|
||||||
const landed = new Date();
|
const landed = new Date();
|
||||||
const agencyModeId = 7;
|
const agencyModeId = 7;
|
||||||
const spectedResult = {
|
const expectedResult = {
|
||||||
landed: landed,
|
landed: landed,
|
||||||
addressFk: 121,
|
addressFk: 121,
|
||||||
agencyModeFk: agencyModeId,
|
agencyModeFk: agencyModeId,
|
||||||
|
@ -198,7 +198,7 @@ describe('Ticket', () => {
|
||||||
controller.ticket.landed = landed;
|
controller.ticket.landed = landed;
|
||||||
controller.agencyModeId = 7;
|
controller.agencyModeId = 7;
|
||||||
|
|
||||||
expect(controller.getShipped).not.toHaveBeenCalledWith(spectedResult);
|
expect(controller.getShipped).not.toHaveBeenCalledWith(expectedResult);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue