Skip to content

Commit

Permalink
Merge 5751435 into 363cd0a
Browse files Browse the repository at this point in the history
  • Loading branch information
Eazybee committed Jul 15, 2019
2 parents 363cd0a + 5751435 commit 7d8d576
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 27 deletions.
117 changes: 92 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@babel/runtime": "^7.3.4",
"@testing-library/jest-dom": "^4.0.0",
"@testing-library/react": "^8.0.5",
"@testing-library/react-hooks": "^1.1.0",
"autoprefixer": "^9.4.10",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
Expand All @@ -90,6 +91,7 @@
"lint-staged": "^9.0.0",
"mini-css-extract-plugin": "^0.7.0",
"react-styleguidist": "^9.1.11",
"react-test-renderer": "^16.8.6",
"style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack-dev-server": "^3.2.1"
Expand All @@ -102,9 +104,10 @@
"react-dom": "^16.8.6",
"react-router-dom": "^5.0.1",
"styled-components": "^4.3.2",
"styled-icons": "^8.1.0",
"validatorjs": "^3.15.1",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.6",
"webpack-merge": "^4.2.1",
"styled-icons": "^8.1.0"
"webpack-merge": "^4.2.1"
}
}
24 changes: 24 additions & 0 deletions src/fixtures/hooks/useForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export const rules = {
username: 'required|alpha',
id: 'numeric',
};

export const event = {
target: {
value: 'EazyBee',
name: 'username',
},
};

export const getEvent = (newObject) => {
return {
target: {
...event.target,
...newObject,
},
};
};

export const callback = (values) => {
return ['callback called', values];
};
Loading

0 comments on commit 7d8d576

Please sign in to comment.