Skip to content

Commit

Permalink
change package.json prepublish to parepare, and fix broken event targ…
Browse files Browse the repository at this point in the history
…et value on slider test
  • Loading branch information
that1matt committed Oct 19, 2018
1 parent 69214ad commit f133e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/slider/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 153,7 @@ describe('Slider', () => {

it('changes its value when input is blurred', () => {
const onChange = jest.fn();
const event = { target: { value: '80' } };
const event = { target: { value: 80 } };
const wrapper = mount(<Slider editable value={50} onChange={onChange} />);
wrapper.find('input').simulate('change', event);
wrapper.find('input').simulate('blur');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 117,7 @@
"lint:staged": "lint-staged",
"patch": "bumped release patch",
"prebuild": "npm run clean",
"prepublish": "npm run build",
"prepare": "npm run build",
"release": "bumped release",
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
"test": "jest",
Expand All @@ -133,4 133,4 @@
"react-dom": "^15.5.0 || ^16.0.0",
"react-transition-group": "^2.2.0"
}
}
}

0 comments on commit f133e48

Please sign in to comment.