Skip to content

Commit e057672

Browse files
committed
update testing in openProject.spec.js
1 parent c9cf80b commit e057672

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/jest/__tests__/openProject.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { createApp } from "vue";
33
import * as All from "quasar";
44
const { Quasar, date } = All;
55

6+
import { createTestingPinia } from "@pinia/testing"; // *
7+
import { useStore } from "../../src/store/main"; // *
8+
const piniaStore = useStore(); // *
9+
610
const components = Object.keys(All).reduce((object, key) => {
711
const val = All[key];
812
if (val && val.component && val.component.name != null) {
@@ -27,7 +31,8 @@ import store from "../../../src/store/state/index";
2731
describe("Test Suite for Image Upload", () => {
2832
const App = {};
2933
const app = createApp(App);
30-
app.use(Quasar, Vuex, { components });
34+
app.use(Quasar, piniaStore, { components }); // *
35+
// app.use(Quasar, Vuex, { components });
3136
const payload = {
3237
icons: {
3338
div: "far fa-square fa-lg",

0 commit comments

Comments
 (0)