Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Nov 8, 2023
1 parent 8306d9f commit 092aea1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -112,7 +112,7 @@ describe(`HomePage`, () => {
useUser.mockImplementation(() => useUserMock());
useDeviceSettings.mockImplementation(() => useDeviceSettingsMock());
useLearnerResources.mockImplementation(() => useLearnerResourcesMock());
useDevicesWithFacility.mockReturnValue({
useDevicesWithFilter.mockReturnValue({
devices: [
{
id: '1',
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -12,7 +12,7 @@ function makeWrapper({ propsData } = {}) {

describe('LearningActivityBar', () => {
beforeEach(() => {
useDevicesWithFacility.mockReturnValue({
useDevicesWithFilter.mockReturnValue({
devices: [
{
id: '1',
Expand Down
4 changes: 2 additions & 2 deletions kolibri/plugins/learn/assets/test/views/topics-page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -139,7 +139,7 @@ describe('TopicsPage', () => {
...store.state.core,
loading: false,
};
useDevicesWithFacility.mockReturnValue({
useDevicesWithFilter.mockReturnValue({
devices: [
{
id: '1',
Expand Down

0 comments on commit 092aea1

Please sign in to comment.