summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-06-05 18:26:42 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-06-05 18:26:42 +0200
commit6548176d8749ffebe3d53d29f5156fcf569bf9e4 (patch)
tree18f3b6f6e40cd708c30250a25baa6b47aafd9c6c
parenta092f8b05572625c4485090da885e2ac41c0c398 (diff)
downloadbackoffice-6548176d8749ffebe3d53d29f5156fcf569bf9e4.tar.gz
backoffice-6548176d8749ffebe3d53d29f5156fcf569bf9e4.tar.bz2
backoffice-6548176d8749ffebe3d53d29f5156fcf569bf9e4.zip
Adapt tests.
Mock the spinning wheel loader for the tests.
-rw-r--r--js/test/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/test/main.js b/js/test/main.js
index ab02193..29d6da7 100644
--- a/js/test/main.js
+++ b/js/test/main.js
@@ -47,6 +47,8 @@ ava.test.beforeEach(t => {
function minor_mocks() {
var document = {};
document.addEventListener = ()=>{};
+ document.getElementsByClassName = ()=>
+ {return [{style: {visibility: "hidden"}}]};
document.getElementById = ()=>
/* pacifies code that attempts
* to change this property anyway. */