Skip to content

Commit

Permalink
fix tests h5pPlayerPage
Browse files Browse the repository at this point in the history
  • Loading branch information
casparneumann-cap committed Nov 15, 2023
1 parent 03a7731 commit 0a374de
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/pages/h5p/H5PPlayer.page.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jest.mock("vue-router/composables", () => ({
}));

describe("H5PPlayerPage", () => {
const parentType = "test-parent-type";
const parentId = "test-parent-id";

const i18nMock = new VueI18n({
locale: "en",
});
Expand All @@ -22,11 +19,6 @@ describe("H5PPlayerPage", () => {
...createComponentMocks({
i18n: true,
}),
propsData: {
parentType,
parentId,
...propsData,
},
provide: {
[I18N_KEY as any]: i18nMock,
},
Expand All @@ -35,7 +27,7 @@ describe("H5PPlayerPage", () => {

it("renders without errors with standard props", async () => {
const wrapper = createWrapper();
const h5pPlayer = wrapper.findComponent({ ref: "editorRef" });
const h5pPlayer = wrapper.findComponent({ ref: "playerRef" });
expect(wrapper.exists()).toBe(true);
expect(h5pPlayer).toBeDefined();
});
Expand Down

0 comments on commit 0a374de

Please sign in to comment.