Fix missing snapshot serializer&enzyme init (#6932)
This commit is contained in:
parent
3417c03f41
commit
bc336abf47
8 changed files with 42 additions and 25 deletions
|
@ -15,8 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import React from "react";
|
||||
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
|
||||
import { configure, mount } from "enzyme";
|
||||
import { mount } from "enzyme";
|
||||
|
||||
import sdk from "../../../skinned-sdk";
|
||||
import { mkEvent, mkStubRoom } from "../../../test-utils";
|
||||
|
@ -28,8 +27,6 @@ import DMRoomMap from "../../../../src/utils/DMRoomMap";
|
|||
const _TextualBody = sdk.getComponent("views.messages.TextualBody");
|
||||
const TextualBody = TestUtils.wrapInMatrixClientContext(_TextualBody);
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
describe("<TextualBody />", () => {
|
||||
afterEach(() => {
|
||||
MatrixClientPeg.matrixClient = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue