mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[Codemod] Rename react unsafe lifecycles (#8143)
* [Codemod] Rename react unsafe lifecycles * Fix lint errors * [Codemod] Rename react unsafe lifecycles * Fix lint errors
This commit is contained in:
@@ -109,7 +109,7 @@ describe('SliceAdder', () => {
|
||||
});
|
||||
|
||||
it('fetch slices should update state', () => {
|
||||
wrapper.instance().componentWillReceiveProps({
|
||||
wrapper.instance().UNSAFE_componentWillReceiveProps({
|
||||
...props,
|
||||
lastUpdated: new Date().getTime(),
|
||||
});
|
||||
@@ -122,7 +122,7 @@ describe('SliceAdder', () => {
|
||||
});
|
||||
|
||||
it('select slices should update state', () => {
|
||||
wrapper.instance().componentWillReceiveProps({
|
||||
wrapper.instance().UNSAFE_componentWillReceiveProps({
|
||||
...props,
|
||||
selectedSliceIds: [127],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user