Add frontend smoke tests

pull/1297/head
Piero Toffanin 2023-03-14 11:29:45 -04:00
rodzic 27c359f5ac
commit 116c14af71
2 zmienionych plików z 25 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,15 @@
import React from 'react';
import { shallow } from 'enzyme';
import SortPanel from '../SortPanel';
var sortItems = [{
key: "created_at",
label: "Created on"
}];
describe('<SortPanel />', () => {
it('renders without exploding', () => {
const wrapper = shallow(<SortPanel items={sortItems} selected="created_at" />);
expect(wrapper.exists()).toBe(true);
})
});

Wyświetl plik

@ -0,0 +1,10 @@
import React from 'react';
import { shallow } from 'enzyme';
import TagsField from '../TagsField';
describe('<TagsField />', () => {
it('renders without exploding', () => {
const wrapper = shallow(<TagsField tags={["abc"]} />);
expect(wrapper.exists()).toBe(true);
})
});