Mock popper.js module
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Fri, 15 Jun 2018 14:26:56 +0000 (16:26 +0200)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Fri, 15 Jun 2018 14:26:56 +0000 (16:26 +0200)
Feature #13628

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

__mocks__/popper.js.js [new file with mode: 0644]

diff --git a/__mocks__/popper.js.js b/__mocks__/popper.js.js
new file mode 100644 (file)
index 0000000..07c7856
--- /dev/null
@@ -0,0 +1,30 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+export default class Popper {
+    static placements = [
+        'auto',
+        'auto-end',
+        'auto-start',
+        'bottom',
+        'bottom-end',
+        'bottom-start',
+        'left',
+        'left-end',
+        'left-start',
+        'right',
+        'right-end',
+        'right-start',
+        'top',
+        'top-end',
+        'top-start'
+    ];
+
+    constructor() {
+        return {
+            destroy: jest.fn(),
+            scheduleUpdate: jest.fn()
+        };
+    }
+}
\ No newline at end of file