Skip to content

Commit

Permalink
Update src/test/javascript/spec/component/shared/metis/answer-post/an…
Browse files Browse the repository at this point in the history
…swer-post.component.spec.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
asliayk and coderabbitai[bot] authored Nov 25, 2024
1 parent 523c56e commit d5c1d0f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ describe('AnswerPostComponent', () => {
expect(component.showDropdown).toBe(showDropdown);
expect(component.dropdownPosition).toEqual(dropdownPosition);

jest.restoreAllMocks();
});
afterEach(() => {
jest.restoreAllMocks();
});

testCases.forEach(({ cursor, preventDefaultCalled, showDropdown, dropdownPosition }) => {
// ... test implementation ...
});
});
});

0 comments on commit d5c1d0f

Please sign in to comment.