import React from 'react'; import { toMatchImageSnapshot } from 'jest-image-snapshot'; import screenshot from 'react-screenshot-renderer'; import { Tags } from '../tags'; import Theme from '@mocks/theme'; expect.extend({ toMatchImageSnapshot }); it('', async () => { expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { const editing = { name: 'name1', value: 'value1', id: 'name1-value1', form: 'editing-form' }; expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { const editing = { name: 'name1', value: 'value1', id: 'name1-value1', form: 'editing-form', removing: true }; expect( await screenshot( ) ).toMatchImageSnapshot(); }); it('', async () => { const tags = [ { name: 'name1', value: 'value1', id: 'name1-value1' }, { name: 'name2', value: 'value2', id: 'name2-value2' }, { name: 'name3', value: 'value3', id: 'name3-value3' } ]; expect( await screenshot( ) ).toMatchImageSnapshot(); });