From 3d0942a9442faf1ae32adfca3c67d165ad03f368 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Thu, 21 Oct 2021 10:43:06 +0200
Subject: [PATCH] TST: fix tests for removeAllWaitingNotifications

---
 test/core/js/modules/webcaosdb.js.js | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/test/core/js/modules/webcaosdb.js.js b/test/core/js/modules/webcaosdb.js.js
index ad26e845..d2ef2795 100644
--- a/test/core/js/modules/webcaosdb.js.js
+++ b/test/core/js/modules/webcaosdb.js.js
@@ -709,12 +709,6 @@ QUnit.test("removeAllErrorNotifications", function (assert) {
         '<div class="caosdb-preview-waiting-notification">Please wait!</div></div>')[0];
     let emptyElem = $('<div></div>')[0];
 
-    assert.throws(() => {
-        preview.removeAllErrorNotifications();
-    }, "no parameter throws");
-    assert.throws(() => {
-        preview.removeAllErrorNotifications(null);
-    }, "null parameter throws");
 
     assert.equal(okElem.childNodes.length, 3, "before: three children");
     assert.equal(okElem, preview.removeAllErrorNotifications(okElem), "return first parameter");
@@ -731,13 +725,6 @@ QUnit.test("removeAllWaitingNotifications", function (assert) {
         '<div class="caosdb-preview-error-notification">Error!</div></div>')[0];
     let emptyElem = $('<div></div>')[0];
 
-    assert.throws(() => {
-        removeAllWaitingNotifications();
-    }, "no parameter throws");
-    assert.throws(() => {
-        removeAllWaitingNotifications(null);
-    }, "null parameter throws");
-
     assert.equal(okElem.childNodes.length, 3, "before: three children");
     assert.equal(okElem, removeAllWaitingNotifications(okElem), "return first parameter");
     assert.equal(okElem.childNodes.length, 1, "after: one child");
-- 
GitLab