aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/testUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/testUtils.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/testUtils.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/helpers/testUtils.js b/server/sonar-web/src/main/js/helpers/testUtils.js
index b426403453f..05104c5482a 100644
--- a/server/sonar-web/src/main/js/helpers/testUtils.js
+++ b/server/sonar-web/src/main/js/helpers/testUtils.js
@@ -24,19 +24,15 @@ export const mockEvent = {
stopPropagation() {}
};
-export const click = element => {
- return element.simulate('click', mockEvent);
-};
+export const click = element => element.simulate('click', mockEvent);
-export const submit = element => {
- return element.simulate('submit', {
+export const submit = element =>
+ element.simulate('submit', {
preventDefault() {}
});
-};
-export const change = (element, value) => {
- return element.simulate('change', {
+export const change = (element, value) =>
+ element.simulate('change', {
target: { value },
currentTarget: { value }
});
-};