Skip to content

Commit

Permalink
chore(esl-toggleable): remove mock
Browse files Browse the repository at this point in the history
  • Loading branch information
fshovchko committed Aug 14, 2023
1 parent c6dac35 commit f366efc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import {ESLTrigger} from '../../esl-trigger/core';
describe('ESLToggleable custom element - integration with ESLTrigger', () => {
const $trigger = ESLTrigger.create();
const $toggleable = ESLToggleable.create();
$trigger.dispatchEvent = jest.fn();
$trigger.$target = $toggleable;

jest.spyOn($trigger, 'dispatchEvent');

beforeAll(() => {
document.body.appendChild($trigger);
jest.useFakeTimers();
ESLToggleable.register();
ESLTrigger.register();

document.body.append($trigger);
document.body.appendChild($trigger);
document.body.appendChild($toggleable);
});

Expand Down

0 comments on commit f366efc

Please sign in to comment.