-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for release 1.0.3 #918
Conversation
const updatedDefence = req.session.levelState[level].defences.find( | ||
(defence) => defence.id === defenceId | ||
); | ||
if (!updatedDefence) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change here is a result of eslint pointing out that updatedDefences
in original code could not actually be undefined.
@@ -50,7 +49,7 @@ describe('DocumentViewBox component tests', () => { | |||
|
|||
const mockDocumentViewer = vi.hoisted(() => vi.fn()); | |||
vi.mock('@cyntler/react-doc-viewer', () => ({ | |||
default: (props: DocViewerProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DocViewerProps is no longer available as an export in the latest release, but in any case, in the cloud feature branch I've changed the test to render the actual DocViewer component, instead of mocking it, so soon enough this code will be removed.
Description
Part of #917
Checklist
Have you done the following?