aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2022-06-14 12:06:03 +0200
committersonartech <sonartech@sonarsource.com>2022-06-14 20:02:51 +0000
commit1ec453a75ab18aa6119c993fdca80f89c1e1eff1 (patch)
tree4ede6a349674cdab65556c76e506efa462300565 /server/sonar-web/src/main/js/helpers
parentb7e212269e51acab068f74901fcde5bcd405436c (diff)
downloadsonarqube-1ec453a75ab18aa6119c993fdca80f89c1e1eff1.tar.gz
sonarqube-1ec453a75ab18aa6119c993fdca80f89c1e1eff1.zip
SONAR-16489 Security Hotspot assignee field interacts with hotspot selection
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-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;
}