File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { router } from "@/router";
1111import useWebEndpointsStore from "@/store/modules/web_endpoints" ;
1212import { IWebEndpoint } from "@/interfaces/IWebEndpoints" ;
1313import useAuthStore from "@/store/modules/auth" ;
14+ import useDevicesStore from "@/store/modules/devices" ;
1415
1516type WebEndpointsWrapper = VueWrapper < InstanceType < typeof WebEndpoints > > ;
1617
@@ -38,9 +39,12 @@ describe("WebEndpoints.vue", () => {
3839 const mockWebEndpointsApi = new MockAdapter ( webEndpointsApi . getAxios ( ) ) ;
3940 setActivePinia ( createPinia ( ) ) ;
4041 const authStore = useAuthStore ( ) ;
42+ const devicesStore = useDevicesStore ( ) ;
4143 const webEndpointsStore = useWebEndpointsStore ( ) ;
4244 const vuetify = createVuetify ( ) ;
4345
46+ devicesStore . fetchDeviceList = vi . fn ( ) . mockResolvedValue ( [ ] ) ;
47+
4448 beforeEach ( async ( ) => {
4549 mockWebEndpointsApi
4650 . onGet ( "http://localhost:3000/api/web-endpoints?page=1&per_page=10" )
You can’t perform that action at this time.
0 commit comments