Skip to content

Commit 7ca075c

Browse files
committed
test(context): empty options(setUseRequestConfig)
1 parent 01f9c17 commit 7ca075c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/context.test.ts

+15
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ describe("context", () => {
6767
});
6868
});
6969

70+
test("setUseRequestConfig empty options", () => {
71+
const Component = defineComponent({
72+
setup() {
73+
const { instance } = getUseRequestConfig();
74+
expect(instance).toBe(axios);
75+
76+
return () => h("div");
77+
},
78+
});
79+
80+
mount(Component, (app) => {
81+
setUseRequestConfig(app);
82+
});
83+
});
84+
7085
test("setUseRequestConfig (vue 2)", () => {
7186
const Component = defineComponent2({
7287
setup() {

0 commit comments

Comments
 (0)