Format
This commit is contained in:
parent
8384d9a237
commit
268ae966e0
1 changed files with 10 additions and 7 deletions
|
|
@ -133,7 +133,10 @@ describe("scheduling.vue", () => {
|
|||
([actionName]) => actionName === "getShopTimeSlotsV2"
|
||||
);
|
||||
expect(shopTimeSlotDispatches).toHaveLength(1);
|
||||
expect(shopTimeSlotDispatches[0][1].payload.providerNumbers).toEqual(["05018", "05019"]);
|
||||
expect(shopTimeSlotDispatches[0][1].payload.providerNumbers).toEqual([
|
||||
"05018",
|
||||
"05019",
|
||||
]);
|
||||
expect(shopTimeSlotDispatches[0][1].payload.endDate).toBeDefined();
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
|
@ -164,12 +167,12 @@ describe("scheduling.vue", () => {
|
|||
await wrapper.vm.handleRequestMoreDates();
|
||||
|
||||
expect(wrapper.vm.inShopProvidersAndTimeslots[0].timeSlots.days).toHaveLength(1);
|
||||
expect(wrapper.vm.inShopProvidersAndTimeslots[0].timeSlots.days[0].timeSlots[0].id).toBe(
|
||||
"slot-a"
|
||||
);
|
||||
expect(wrapper.vm.inShopProvidersAndTimeslots[1].timeSlots.days[0].timeSlots[0].id).toBe(
|
||||
"slot-b"
|
||||
);
|
||||
expect(
|
||||
wrapper.vm.inShopProvidersAndTimeslots[0].timeSlots.days[0].timeSlots[0].id
|
||||
).toBe("slot-a");
|
||||
expect(
|
||||
wrapper.vm.inShopProvidersAndTimeslots[1].timeSlots.days[0].timeSlots[0].id
|
||||
).toBe("slot-b");
|
||||
wrapper.unmount();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue