[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] branch master updated: Adapt tests.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] branch master updated: Adapt tests. |
Date: |
Tue, 05 Jun 2018 18:27:17 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository backoffice.
The following commit(s) were added to refs/heads/master by this push:
new 6548176 Adapt tests.
6548176 is described below
commit 6548176d8749ffebe3d53d29f5156fcf569bf9e4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jun 5 18:26:42 2018 +0200
Adapt tests.
Mock the spinning wheel loader for the tests.
---
js/test/main.js | 2 ++
1 file changed, 2 insertions(+)
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. */
--
To stop receiving notification emails like this one, please contact
address@hidden