Skip to content

Commit 02c7ee0

Browse files
Fix test
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
1 parent 15169a0 commit 02c7ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/NotebookPicker.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('NotebookPicker', () => {
7777

7878
it('should not call fromJSON if selected notebook is invalid', async () => {
7979
const getMetadata = panel.context.model.getMetadata as jest.Mock;
80-
getMetadata.mockReturnValue({ notebooks: {} });
80+
getMetadata.mockReturnValue({ notebooks: {}, notebook_names: [] });
8181

8282
const select = document.querySelector('select') as HTMLSelectElement;
8383
simulate(select, 'change', { target: { value: 'nonexistent' } });

0 commit comments

Comments
 (0)