kopia lustrzana https://github.com/OpenDroneMap/WebODM
Add frontend smoke tests
rodzic
27c359f5ac
commit
116c14af71
|
@ -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);
|
||||||
|
})
|
||||||
|
});
|
|
@ -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);
|
||||||
|
})
|
||||||
|
});
|
Ładowanie…
Reference in New Issue