<commit_before>/* eslint-disable class-methods-use-this */
import React from 'react';
import { mount } from 'enzyme';
import Align from '../src';

describe('element align', () => {
  beforeEach(() => {
    jest.useFakeTimers();
  });

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

  const align = {
    points: ['bc', 'tc'],
  };

  class Test extends React.Component {<commit_msg>test: fix test case<commit_after>/* eslint-disable class-methods-use-this */
import React from 'react';
import { mount } from 'enzyme';
import { spyElementPrototype } from 'rc-util/lib/test/domHook';
import Align from '../src';

describe('element align', () => {
  beforeAll(() => {
    spyElementPrototype(HTMLElement, 'offsetParent', {
      get: () => ({}),
    });
  });

  beforeEach(() => {
    jest.useFakeTimers();
  });

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

  const align = {
    points: ['bc', 'tc'],
  };

  class Test extends React.Component {
{'fraction_non_alphanumeric': 0.19603753910323254, 'fraction_numerical': 0.0, 'mean_word_length': 3.3835616438356166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5862469', 'n_tokens_mistral': 315, 'n_tokens_neox': 307, 'n_words': 71}