Check for closing modal as well.

This commit is contained in:
Chloe Herd 2023-08-15 15:59:22 -04:00
parent cba95f7e60
commit 985577202a

View file

@ -46,6 +46,7 @@ describe("Customer Details Modal", () => {
// Assert
expect(wrapper.vm.dispatchStoreAction).toHaveBeenCalled();
expect(wrapper.vm.closeModal).toHaveBeenCalled();
});
test("Should not push to store if no fields have changed", async () => {
@ -64,6 +65,7 @@ describe("Customer Details Modal", () => {
// Assert
expect(wrapper.vm.dispatchStoreAction).not.toHaveBeenCalled();
expect(wrapper.vm.closeModal).toHaveBeenCalled();
});
});