More jest tests, increased version

pull/746/head
Piero Toffanin 2019-12-03 10:59:15 -05:00
rodzic c3ab68504b
commit aa411e9935
3 zmienionych plików z 43 dodań i 2 usunięć

Wyświetl plik

@ -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);
})
});

Wyświetl plik

@ -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);
})
});

Wyświetl plik

@ -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"