aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/testUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/testUtils.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/testUtils.ts23
1 files changed, 19 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/helpers/testUtils.ts b/server/sonar-web/src/main/js/helpers/testUtils.ts
index 603c3f32a02..5447d52f898 100644
--- a/server/sonar-web/src/main/js/helpers/testUtils.ts
+++ b/server/sonar-web/src/main/js/helpers/testUtils.ts
@@ -23,10 +23,25 @@ import { KeyboardKeys } from './keycodes';
export function mockEvent(overrides = {}) {
return {
- target: { blur() {} },
- currentTarget: { blur() {} },
- preventDefault() {},
- stopPropagation() {},
+ target: {
+ blur() {
+ /* noop */
+ }
+ },
+ currentTarget: {
+ blur() {
+ /* noop */
+ }
+ },
+ preventDefault() {
+ /* noop */
+ },
+ stopPropagation() {
+ /* noop */
+ },
+ stopImmediatePropagation() {
+ /* noop */
+ },
...overrides
} as any;
}