<commit_before>import React from 'react'
import Popover from './Popover'
import {mount} from 'enzyme'

describe('tocco-ui', function() {
  describe('Popover', function() {
    it('should show popover content on mouseover and hide on mouseout', () => {
      const wrapper = mount(
        <Popover content={<span className="content">Popover</span>}><span className="child">Test</span></Popover>
      )
      expect(wrapper.find('.child')).to.have.length(1)
      expect(wrapper.find('.content')).to.have.length(0)

      wrapper.simulate('mouseover')
      expect(wrapper.find('.content')).to.have.length(1)

      wrapper.simulate('mouseout')
      expect(wrapper.find('.content')).to.have.length(0)
    })
  })
})<commit_msg>test(tocco-ui): use arrow function for test<commit_after>import React from 'react'
import Popover from './Popover'
import {mount} from 'enzyme'

describe('tocco-ui', () => {
  describe('Popover', () => {
    it('should show popover content on mouseover and hide on mouseout', () => {
      const wrapper = mount(
        <Popover content={<span className="content">Popover</span>}><span className="child">Test</span></Popover>
      )
      expect(wrapper.find('.child')).to.have.length(1)
      expect(wrapper.find('.content')).to.have.length(0)

      wrapper.simulate('mouseover')
      expect(wrapper.find('.content')).to.have.length(1)

      wrapper.simulate('mouseout')
      expect(wrapper.find('.content')).to.have.length(0)
    })
  })
})
{'fraction_non_alphanumeric': 0.1842818428184282, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 3.8745874587458746, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '4930222', 'n_tokens_mistral': 457, 'n_tokens_neox': 453, 'n_words': 81}