Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Aug 31, 2023
1 parent f00f4e3 commit 4ec6099
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ui/Statistic/Statistic.stories.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ import '@testing-library/jest-dom/extend-expect';
describe('AnimationGroup component', () => {
let observe;
let unobserve;
let callback;
let disconnect;
observe = jest.fn();
unobserve = jest.fn();
disconnect = jest.fn();

window.IntersectionObserver = jest.fn(function (cb) {
window.IntersectionObserver = jest.fn(function () {
this.observe = observe;
this.unobserve = unobserve;
this.disconnect = disconnect;
callback = cb;
});
it('renders a button with label', () => {
const { getByText } = render(<AnimationGroup {...AnimationGroup.args} />);
Expand All @@ -42,17 +40,15 @@ describe('AnimationGroup component', () => {
describe('Animation component', () => {
let observe;
let unobserve;
let callback;
let disconnect;
observe = jest.fn();
unobserve = jest.fn();
disconnect = jest.fn();

window.IntersectionObserver = jest.fn(function (cb) {
window.IntersectionObserver = jest.fn(function () {
this.observe = observe;
this.unobserve = unobserve;
this.disconnect = disconnect;
callback = cb;
});
it('renders a button with label', () => {
const { getByText } = render(<Animation {...Animation.args} />);
Expand Down

0 comments on commit 4ec6099

Please sign in to comment.