Fix unit test now that loading status is true on page load
This commit is contained in:
parent
dcf6a60825
commit
8e6e717a84
1 changed files with 2 additions and 1 deletions
|
|
@ -63,8 +63,9 @@ function setupMocks() {
|
|||
|
||||
describe("scheduling.vue", () => {
|
||||
describe("intercept overlay", () => {
|
||||
test("does not render interceptOverlay when isLoadingDates is false", () => {
|
||||
test("does not render interceptOverlay when isLoadingDates is false", async () => {
|
||||
const { wrapper } = setupMocks();
|
||||
await wrapper.setData({ isLoadingDates: false });
|
||||
expect(wrapper.find("intercept-overlay-stub").exists()).toBe(false);
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue