Skip to content

Commit

Permalink
TEST - mount時にエラーが出たため、第2引数に型情報を付与する
Browse files Browse the repository at this point in the history
 - GithubのIssueを参考にした
 vuejs/test-utils#194 (comment)
  • Loading branch information
OKAUEND committed Jan 5, 2021
1 parent deb81bb commit 49acbea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/Part/CategoryContent/ContentList.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from "@vue/test-utils";
import { mount, MountingOptions } from "@vue/test-utils";

import ContentList from "@/components/Parts/CategoryContent/ContentList.vue";
import ChildComponent from "@/components/Base/Input/BaseInputRadio.vue";
Expand All @@ -25,7 +25,7 @@ const ContentListFactory = (propsData: object) => {
selectRadioValue: "",
...propsData,
},
});
} as MountingOptions<{}>);
};

const props: Props = {
Expand Down Expand Up @@ -53,7 +53,7 @@ const categoryContentFactory = (propsData: object) => {
categories: [],
...propsData,
},
});
} as MountingOptions<{}>);
};

interface CategoryContentProps {
Expand Down

0 comments on commit 49acbea

Please sign in to comment.