Skip to content

Commit

Permalink
style: workaround matching mocha rule
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 11, 2024
1 parent d894222 commit 09a2358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/spec/features/popup-menu/PopupMenuComponentSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ insertCSS('fake-font.css', `

describe('features/popup-menu - <PopupMenu>', function() {

let container, teardown;
let container, cleanup;

beforeEach(function() {
container = domify('<div class="djs-parent"></div>');
Expand All @@ -56,7 +56,7 @@ describe('features/popup-menu - <PopupMenu>', function() {
afterEach(function() {
container.parentNode.removeChild(container);

teardown && teardown();
cleanup && cleanup();
});


Expand Down Expand Up @@ -86,7 +86,7 @@ describe('features/popup-menu - <PopupMenu>', function() {
await createPopupMenu({ container, onClosed });

// when
teardown();
cleanup();

// then
expect(onClosed).to.have.been.calledOnce;
Expand Down Expand Up @@ -748,10 +748,10 @@ describe('features/popup-menu - <PopupMenu>', function() {
...restOptions
};

teardown = () => {
cleanup = () => {
render(null, container);

teardown = null;
cleanup = null;
};

const result = render(
Expand Down

0 comments on commit 09a2358

Please sign in to comment.