Prettified
This commit is contained in:
parent
96fec12f94
commit
48e5652a69
1 changed files with 3 additions and 9 deletions
|
|
@ -114,7 +114,6 @@ describe("modal.vue", () => {
|
|||
|
||||
// Assert
|
||||
expect(wrapper.vm.isFooterButtonDisabled).toBe(true);
|
||||
|
||||
});
|
||||
|
||||
it("Should have a disabled footer button when the form is invalid", async () => {
|
||||
|
|
@ -139,7 +138,6 @@ describe("modal.vue", () => {
|
|||
|
||||
// Assert
|
||||
expect(wrapper.vm.isFooterButtonDisabled).toBe(true);
|
||||
|
||||
});
|
||||
|
||||
it("Should call bootstrap Modal method 'show' when calling 'openModal'", async () => {
|
||||
|
|
@ -151,8 +149,7 @@ describe("modal.vue", () => {
|
|||
useIsFormDirty.mockReturnValue(true);
|
||||
useIsFormValid.mockReturnValue(true);
|
||||
|
||||
const showMock = jest
|
||||
.spyOn(Modal.prototype, "show");
|
||||
const showMock = jest.spyOn(Modal.prototype, "show");
|
||||
|
||||
const resetButtonStyle = jest.fn();
|
||||
const wrapper = shallowMount(modal, {
|
||||
|
|
@ -169,7 +166,6 @@ describe("modal.vue", () => {
|
|||
|
||||
// Assert
|
||||
expect(showMock).toHaveBeenCalled();
|
||||
|
||||
});
|
||||
|
||||
it("Should call bootstrap Modal method 'hide' when calling 'closeModal'", async () => {
|
||||
|
|
@ -181,8 +177,7 @@ describe("modal.vue", () => {
|
|||
useIsFormDirty.mockReturnValue(true);
|
||||
useIsFormValid.mockReturnValue(true);
|
||||
|
||||
const hideMock = jest
|
||||
.spyOn(Modal.prototype, "hide");
|
||||
const hideMock = jest.spyOn(Modal.prototype, "hide");
|
||||
|
||||
const resetButtonStyle = jest.fn();
|
||||
const wrapper = shallowMount(modal, {
|
||||
|
|
@ -200,7 +195,6 @@ describe("modal.vue", () => {
|
|||
|
||||
// Assert
|
||||
expect(hideMock).toHaveBeenCalled();
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue