]> Untitled Git - lemmy-ui.git/blob - src/client/components/About/About.test.tsx
8a2372951a1d47c31e254a44dfd71067ec7ca0f8
[lemmy-ui.git] / src / client / components / About / About.test.tsx
1 import 'jsdom-global/register';
2 import { configure, mount, render, shallow } from 'enzyme';
3 import InfernoEnzymeAdapter = require('enzyme-adapter-inferno');
4 import { should } from 'fuse-test-runner';
5 import { Component } from 'inferno';
6 import { renderToSnapshot } from 'inferno-test-utils';
7 import About from './About';
8 configure({ adapter: new InfernoEnzymeAdapter() });
9
10 export class AboutTest {
11   public 'Should be okay'() {
12     const wrapper = mount(<About />);
13     wrapper.find('.button').simulate('click');
14     const countText = wrapper.find('.count').text();
15     should(countText).beString().equal('1');
16   }
17 }