From 9441465de10924f887dd4564244f52b0c6e65e26 Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Fri, 26 Jan 2024 12:22:28 -0500 Subject: [PATCH] Format code, temporary unit test. --- jest.config.js | 1 + src/layouts/insurance/insurance.spec.js | 3 ++ src/layouts/quote/quote.spec.js | 38 ------------------------- 3 files changed, 4 insertions(+), 38 deletions(-) diff --git a/jest.config.js b/jest.config.js index f917aca5d..0936f64db 100644 --- a/jest.config.js +++ b/jest.config.js @@ -24,6 +24,7 @@ module.exports = { "!src/layouts/review/*.vue", // Temp test exclusion while in development "!src/layouts/payment/*.vue", // Temp test exclusion while in development "!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development + "!src/layouts/insurance/*.vue", // Temp test exclusion while in development // END ], // ! means exclude from coverage. testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], diff --git a/src/layouts/insurance/insurance.spec.js b/src/layouts/insurance/insurance.spec.js index e69de29bb..a833c2a3f 100644 --- a/src/layouts/insurance/insurance.spec.js +++ b/src/layouts/insurance/insurance.spec.js @@ -0,0 +1,3 @@ +describe('insurance', () => { + it.todo('Should render a normal string') +}); \ No newline at end of file diff --git a/src/layouts/quote/quote.spec.js b/src/layouts/quote/quote.spec.js index dc30985a5..fc9b4c4eb 100644 --- a/src/layouts/quote/quote.spec.js +++ b/src/layouts/quote/quote.spec.js @@ -142,44 +142,6 @@ describe("quote.vue", () => { expect(wrapper.vm.$router.navigateWithSaving).toHaveBeenCalled(); }); - test("IsInsurance true should navigateToHeritageFunnel", async () => { - //Arrange - store.getters = { - payment: { - insuranceCoverage: {}, - isInsurance: true, - }, - order: { - lineItems: [], - payment: { - parentAccountNumber: null, - }, - }, - }; - const { wrapper } = setupMocks({ - customMountOptions: { - router: { - navigateWithSaving: jest.fn(), - }, - route: { quote }, - mixins: [mockMixin], - }, - }); - - wrapper.vm.dispatchStoreAction = jest.fn(() => { - return { - data: [], - }; - }); - - wrapper.vm.pricedGlassParts = []; - - //Act - await wrapper.vm.forwardButtonAction(); - - //Assert - expect(navigateToHeritage.navigateToHeritageFunnel).toHaveBeenCalled(); - }); test("should pass arePagePrerequisitesValid with a repair order", () => { //Arrange store.getters = {