Skip to content

Commit

Permalink
Fix lint warning in preview web test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed May 31, 2022
1 parent 61d6451 commit d42b8b7
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 221 deletions.
5 changes: 3 additions & 2 deletions lib/preview-web/src/PreviewWeb.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ describe('PreviewWeb', () => {
const preview = new PreviewWeb();

const docsRoot = window.document.createElement('div');
// @ts-ignore
preview.view.prepareForDocs.mockReturnValue(docsRoot);
(
preview.view.prepareForDocs as any as jest.Mock<typeof preview.view.prepareForDocs>
).mockReturnValue(docsRoot);
componentOneExports.default.parameters.docs.container.mockImplementationOnce(() =>
React.createElement('div', {}, 'INSIDE')
);
Expand Down

0 comments on commit d42b8b7

Please sign in to comment.