Skip to content

Commit

Permalink
afterEach function was added inside the loop for different versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kemister85 committed Sep 12, 2024
1 parent 6d1df84 commit e71bef9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/ts/browser/InitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ describe('Editor Component Initialization Tests', () => {
Keyboard.keystroke(Keys.space(), {}, SugarElement.fromDom(vmContext.editor.getBody()) as SugarElement<Node>);
};

afterEach(() => {
cleanupTinymce();
});

Arr.each([ '4', '5', '6', '7' as const ], (version) => {
context(`Version: ${version}`, () => {
afterEach(() => {
cleanupTinymce();
});
before(async () => {
await VersionLoader.pLoadVersion(version);
});
Expand Down

0 comments on commit e71bef9

Please sign in to comment.