From 3813885187de3945c9a91529770e76e9f86da5f8 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 23 Jul 2024 17:25:29 -0700 Subject: [PATCH] Fix tests. --- .../frontend/channelEdit/views/TreeView/index.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.spec.js b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.spec.js index 470e67a89d..4ec3d01d61 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.spec.js +++ b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.spec.js @@ -22,7 +22,7 @@ const GETTERS = { canManage: jest.fn(() => true), }, contentNode: { - getContentNodeChildren: () => jest.fn(() => []), + getContentNodeChildren: () => jest.fn(() => ({ results: [], more: null })), getContentNodeAncestors: () => jest.fn(() => []), getContentNode: () => jest.fn(() => ({})), getTopicAndResourceCounts: () => jest.fn(() => ({ topicCount: 0, resourceCount: 0 })), @@ -35,7 +35,7 @@ const ACTIONS = { loadContentNode: jest.fn(), headContentNode: () => jest.fn(), loadContentNodes: jest.fn(), - loadChildren: jest.fn(), + loadChildren: jest.fn(() => ({ results: [], more: null })), }, };