From 6138411ab5e4f7da122b18391d93dd62428f8beb Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 30 Mar 2023 10:52:23 +1300 Subject: [PATCH] MNT Update test label --- client/src/components/UploadField/tests/UploadField-test.js | 2 +- client/src/containers/Gallery/Gallery.js | 1 - client/src/containers/Gallery/tests/Gallery-test.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/components/UploadField/tests/UploadField-test.js b/client/src/components/UploadField/tests/UploadField-test.js index d7285552c..4b8550ea2 100644 --- a/client/src/components/UploadField/tests/UploadField-test.js +++ b/client/src/components/UploadField/tests/UploadField-test.js @@ -206,7 +206,7 @@ describe('UploadField', () => { }); }); - describe('componentWillReceiveProps', () => { + describe('componentDidUpdate', () => { beforeEach(() => { file = ReactTestUtils.renderIntoDocument( diff --git a/client/src/containers/Gallery/Gallery.js b/client/src/containers/Gallery/Gallery.js index ebb758bf7..026505d9e 100644 --- a/client/src/containers/Gallery/Gallery.js +++ b/client/src/containers/Gallery/Gallery.js @@ -326,7 +326,6 @@ class Gallery extends Component { handleSort(value) { this.props.actions.queuedFiles.purgeUploadQueue(); this.props.onSort(value); - // this will flow round to `componentWillReceiveProps` and update sort there. } /** diff --git a/client/src/containers/Gallery/tests/Gallery-test.js b/client/src/containers/Gallery/tests/Gallery-test.js index d6e5e7e75..b7c21f47a 100644 --- a/client/src/containers/Gallery/tests/Gallery-test.js +++ b/client/src/containers/Gallery/tests/Gallery-test.js @@ -211,7 +211,7 @@ describe('Gallery', () => { }); }); - describe('componentWillReceiveProps()', () => { + describe('componentDidUpdate()', () => { let gallery = null; beforeEach(() => {