diff --git a/kolibri/plugins/learn/assets/src/views/HomePage/__tests__/HomePage.spec.js b/kolibri/plugins/learn/assets/src/views/HomePage/__tests__/HomePage.spec.js index 9a484e1eccb..f09fdfea9a3 100644 --- a/kolibri/plugins/learn/assets/src/views/HomePage/__tests__/HomePage.spec.js +++ b/kolibri/plugins/learn/assets/src/views/HomePage/__tests__/HomePage.spec.js @@ -2,7 +2,7 @@ import { mount, createLocalVue } from '@vue/test-utils'; import VueRouter from 'vue-router'; import Vuex from 'vuex'; -import { useDevicesWithFacility } from 'kolibri.coreVue.componentSets.sync'; +import { useDevicesWithFilter } from 'kolibri.coreVue.componentSets.sync'; import useUser, { useUserMock } from 'kolibri.coreVue.composables.useUser'; import useKResponsiveWindow from 'kolibri-design-system/lib/useKResponsiveWindow'; import { ClassesPageNames, PageNames } from '../../../constants'; @@ -112,7 +112,7 @@ describe(`HomePage`, () => { useUser.mockImplementation(() => useUserMock()); useDeviceSettings.mockImplementation(() => useDeviceSettingsMock()); useLearnerResources.mockImplementation(() => useLearnerResourcesMock()); - useDevicesWithFacility.mockReturnValue({ + useDevicesWithFilter.mockReturnValue({ devices: [ { id: '1', diff --git a/kolibri/plugins/learn/assets/test/views/learning-activity-bar.spec.js b/kolibri/plugins/learn/assets/test/views/learning-activity-bar.spec.js index fbe8a6fdd45..a627992a021 100644 --- a/kolibri/plugins/learn/assets/test/views/learning-activity-bar.spec.js +++ b/kolibri/plugins/learn/assets/test/views/learning-activity-bar.spec.js @@ -1,5 +1,5 @@ import { shallowMount, mount } from '@vue/test-utils'; -import { useDevicesWithFacility } from 'kolibri.coreVue.componentSets.sync'; +import { useDevicesWithFilter } from 'kolibri.coreVue.componentSets.sync'; import { LearningActivities } from 'kolibri.coreVue.vuex.constants'; import LearningActivityBar from '../../src/views/LearningActivityBar'; @@ -12,7 +12,7 @@ function makeWrapper({ propsData } = {}) { describe('LearningActivityBar', () => { beforeEach(() => { - useDevicesWithFacility.mockReturnValue({ + useDevicesWithFilter.mockReturnValue({ devices: [ { id: '1', diff --git a/kolibri/plugins/learn/assets/test/views/topics-page.spec.js b/kolibri/plugins/learn/assets/test/views/topics-page.spec.js index 3ab1a6f3bc5..e2834e0ff79 100644 --- a/kolibri/plugins/learn/assets/test/views/topics-page.spec.js +++ b/kolibri/plugins/learn/assets/test/views/topics-page.spec.js @@ -4,7 +4,7 @@ import { createLocalVue, shallowMount, mount } from '@vue/test-utils'; import flushPromises from 'flush-promises'; import KBreadcrumbs from 'kolibri-design-system/lib/KBreadcrumbs'; import { ContentNodeKinds } from 'kolibri.coreVue.vuex.constants'; -import { useDevicesWithFacility } from 'kolibri.coreVue.componentSets.sync'; +import { useDevicesWithFilter } from 'kolibri.coreVue.componentSets.sync'; import { ContentNodeResource } from 'kolibri.resources'; import plugin_data from 'plugin_data'; import makeStore from '../makeStore'; @@ -139,7 +139,7 @@ describe('TopicsPage', () => { ...store.state.core, loading: false, }; - useDevicesWithFacility.mockReturnValue({ + useDevicesWithFilter.mockReturnValue({ devices: [ { id: '1',