Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix mocks in FormattingButtons-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry Archibald committed Apr 19, 2023
1 parent 659c3ef commit 6d9aa36
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { ActionState, ActionTypes, AllActionStates, FormattingFunctions } from "

import { FormattingButtons } from "../../../../../../src/components/views/rooms/wysiwyg_composer/components/FormattingButtons";
import * as LinkModal from "../../../../../../src/components/views/rooms/wysiwyg_composer/components/LinkModal";
import { clearAllModals } from "../../../../../test-utils";

const mockWysiwyg = {
bold: jest.fn(),
Expand Down Expand Up @@ -72,8 +73,10 @@ const classes = {
};

describe("FormattingButtons", () => {
afterEach(() => {
afterEach(async () => {
jest.resetAllMocks();

await clearAllModals();
});

it("Each button should not have active class when enabled", () => {
Expand Down

0 comments on commit 6d9aa36

Please sign in to comment.