diff --git a/src/store/store.spec.js b/src/store/store.spec.js new file mode 100644 index 00000000..c1a6c694 --- /dev/null +++ b/src/store/store.spec.js @@ -0,0 +1,21 @@ +import { useMainStore } from "./" +import { createApp } from 'vue'; +import { createPinia } from "pinia"; +import App from '@/App.vue'; + +describe("Store", () => { + let store = null; + + beforeAll(() => { + const vueApp = createApp(App); + const pinia = createPinia(); + vueApp.use(pinia); + store = useMainStore(); + }) + + it("Should Store Vehicle Year", () => { + let testYear = "2001"; + store.updateVehicleYear(testYear); + expect(store.order.vehicle.year).toEqual(testYear); + }); +}); \ No newline at end of file