Skip to content

Commit 1ec6c93

Browse files
committed
refactor: improve tests
Rebase on top of #1263 and fix updated tests
1 parent 2c767a3 commit 1ec6c93

File tree

5 files changed

+504
-495
lines changed

5 files changed

+504
-495
lines changed

src/library-authoring/EmptyStates.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react/require-default-props */
21
import React, { useContext } from 'react';
32
import { useParams } from 'react-router';
43
import { FormattedMessage } from '@edx/frontend-platform/i18n';

src/library-authoring/LibraryAuthoringPage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ describe('<LibraryAuthoringPage />', () => {
228228

229229
// Navigate to the collections tab
230230
fireEvent.click(doc.getByRole('tab', { name: 'Collections' }));
231-
expect(getByText('No matching collections found in this library.')).toBeInTheDocument();
231+
expect(doc.getByText('No matching collections found in this library.')).toBeInTheDocument();
232232

233233
// Go back to Home tab
234234
// This step is necessary to avoid the url change leak to other tests

0 commit comments

Comments
 (0)