Skip to content

Commit 894cb50

Browse files
add missing default params
1 parent d9a9171 commit 894cb50

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/compass-indexes/src/components/indexes-toolbar/indexes-toolbar.spec.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe('IndexesToolbar Component', function () {
4141
onRefreshIndexes={() => {}}
4242
isSearchIndexesSupported={false}
4343
isRefreshing={false}
44+
collectionStats={{ index_count: 0, index_size: 0, pipeline: [] }}
4445
onIndexViewChanged={() => {}}
4546
onCreateRegularIndexClick={() => {}}
4647
onCreateSearchIndexClick={() => {}}
@@ -165,7 +166,11 @@ describe('IndexesToolbar Component', function () {
165166
const pipelineMock: Document[] = [
166167
{ $project: { newField: 'testValue' } },
167168
];
168-
const mockCollectionStats = { pipeline: pipelineMock };
169+
const mockCollectionStats = {
170+
index_count: 0,
171+
index_size: 0,
172+
pipeline: pipelineMock,
173+
};
169174

170175
renderIndexesToolbar({
171176
isReadonlyView: true,

packages/compass-indexes/src/components/search-indexes-table/search-indexes-table.spec.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const renderIndexList = (
2929
status="READY"
3030
isWritable={true}
3131
readOnly={false}
32+
isReadonlyView={false}
3233
onDropIndexClick={noop}
3334
onEditIndexClick={noop}
3435
onOpenCreateModalClick={noop}
@@ -130,7 +131,11 @@ describe('SearchIndexesTable Component', function () {
130131

131132
it('renders the zero state with button disabled if there are no indexes and isReadOnlyView with non searchable pipeline', function () {
132133
const pipelineMock: Document[] = [{ $project: { newField: 'testValue' } }];
133-
const mockCollectionStats = { pipeline: pipelineMock };
134+
const mockCollectionStats = {
135+
index_count: 0,
136+
index_size: 0,
137+
pipeline: pipelineMock,
138+
};
134139
renderIndexList({
135140
indexes: [],
136141
isReadonlyView: true,

0 commit comments

Comments
 (0)