Package.json file edited

This commit is contained in:
Guzel738 2021-02-03 13:58:22 +03:00
parent 8320e9755b
commit 1940ff8065
2 changed files with 4 additions and 6 deletions

View file

@ -25,7 +25,6 @@
"redux": "^4.0.5", "redux": "^4.0.5",
"redux-thunk": "^2.3.0", "redux-thunk": "^2.3.0",
"reselect": "^4.0.0", "reselect": "^4.0.0",
"ts-jest": "^26.4.4",
"typesafe-actions": "^5.1.0", "typesafe-actions": "^5.1.0",
"use-debounce": "^3.4.3", "use-debounce": "^3.4.3",
"uuid": "^8.3.1" "uuid": "^8.3.1"
@ -100,6 +99,7 @@
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"react-scripts": "4.0.1", "react-scripts": "4.0.1",
"ts-jest": "^26.4.4",
"typescript": "~4.1.2" "typescript": "~4.1.2"
}, },
"engines": { "engines": {

View file

@ -92,7 +92,7 @@ describe('Messages component', () => {
}); });
describe('With defined offset value', () => { describe('With defined offset value', () => {
const wrapper = mount(setupWrapper()); const wrapper = shallow(setupWrapper());
it('shows offset value in input', () => { it('shows offset value in input', () => {
const offset = '10'; const offset = '10';
@ -107,14 +107,12 @@ describe('Messages component', () => {
}); });
}); });
describe('With invalid offset value', () => { describe('With invalid offset value', () => {
const wrapper = mount(setupWrapper()); const wrapper = shallow(setupWrapper());
it('shows 0 in input', () => { it('shows 0 in input', () => {
const offset = null;
wrapper wrapper
.find('#searchOffset') .find('#searchOffset')
.simulate('change', { target: { value: offset } }); .simulate('change', { target: { value: null } });
expect(wrapper.find('#searchOffset').first().props().value).toBe('0'); expect(wrapper.find('#searchOffset').first().props().value).toBe('0');
}); });