Skip to content

Commit fa0a13e

Browse files
committed
update tests
1 parent df49da0 commit fa0a13e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/behaviours/__tests__/withPrompt.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ describe('withPrompt', () => {
1818
},
1919
installedProtocols: {
2020
mockProtocol: {
21+
codebook: {
22+
node: {},
23+
edge: {},
24+
ego: {},
25+
},
2126
stages: [{}, {}],
2227
},
2328
},

src/hooks/__test__/useSort.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const mockList = [
3939
const sortOrder = {
4040
property: ['data', 'name'],
4141
direction: 'desc',
42+
type: 'string',
4243
};
4344

4445
const TestConsumer = ({ list, initialSortOrder }) => {
@@ -47,6 +48,7 @@ const TestConsumer = ({ list, initialSortOrder }) => {
4748
sortByProperty,
4849
sortDirection,
4950
updateSortByProperty,
51+
setSortType,
5052
setSortDirection,
5153
] = useSort(
5254
list,
@@ -60,6 +62,7 @@ const TestConsumer = ({ list, initialSortOrder }) => {
6062
sortByProperty,
6163
sortDirection,
6264
updateSortByProperty,
65+
setSortType,
6366
setSortDirection,
6467
}}
6568
/>

0 commit comments

Comments
 (0)