kopia lustrzana https://github.com/OpenDroneMap/WebODM
More jest tests, increased version
rodzic
c3ab68504b
commit
aa411e9935
|
@ -0,0 +1,10 @@
|
|||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import LayersControlPanel from '../LayersControlPanel';
|
||||
|
||||
describe('<LayersControlPanel />', () => {
|
||||
it('renders without exploding', () => {
|
||||
const wrapper = mount(<LayersControlPanel onClose={() => {}} layers={[]} map={{}} />);
|
||||
expect(wrapper.exists()).toBe(true);
|
||||
})
|
||||
});
|
|
@ -0,0 +1,31 @@
|
|||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { Checkbox, ExpandButton } from '../Toggle';
|
||||
|
||||
describe('<Checkbox />', () => {
|
||||
it('renders without exploding', () => {
|
||||
const self = {
|
||||
state:{
|
||||
visible: true
|
||||
},
|
||||
setState: () => {}
|
||||
};
|
||||
|
||||
const wrapper = mount(<Checkbox bind={[self, 'visible']} />);
|
||||
expect(wrapper.exists()).toBe(true);
|
||||
})
|
||||
});
|
||||
|
||||
describe('<ExpandButton />', () => {
|
||||
it('renders without exploding', () => {
|
||||
const self = {
|
||||
state:{
|
||||
visible: true
|
||||
},
|
||||
setState: () => {}
|
||||
};
|
||||
|
||||
const wrapper = mount(<ExpandButton bind={[self, 'visible']} />);
|
||||
expect(wrapper.exists()).toBe(true);
|
||||
})
|
||||
});
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "WebODM",
|
||||
"version": "1.1.3",
|
||||
"version": "1.2.0",
|
||||
"description": "Open Source Drone Image Processing",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -14,7 +14,7 @@
|
|||
"keywords": [
|
||||
"opendronemap"
|
||||
],
|
||||
"author": "",
|
||||
"author": "Piero Toffanin",
|
||||
"license": "MPL-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/OpenDroneMap/WebODM/issues"
|
||||
|
|
Ładowanie…
Reference in New Issue