Check for closing modal as well.
This commit is contained in:
parent
cba95f7e60
commit
985577202a
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue