Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thsmi/sieve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Schmid <schmid-thomas@gmx.net>2021-08-21 14:03:19 +0300
committerThomas Schmid <schmid-thomas@gmx.net>2021-08-21 14:03:19 +0300
commitd042f47e370756e0c6ff717d1e63274399f74357 (patch)
tree1c1da0daef56b787af72420e036e459ccaf777c5 /tests
parent135acba03b25921d076da52d30e27d1c66bb9e87 (diff)
Fix bug in app update version check
Diffstat (limited to 'tests')
-rw-r--r--tests/js/common/sandbox/AbstractSandboxedFixture.mjs14
-rwxr-xr-xtests/tests/tests.js7
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/js/common/sandbox/AbstractSandboxedFixture.mjs b/tests/js/common/sandbox/AbstractSandboxedFixture.mjs
index 77ae1d78..ccf0679d 100644
--- a/tests/js/common/sandbox/AbstractSandboxedFixture.mjs
+++ b/tests/js/common/sandbox/AbstractSandboxedFixture.mjs
@@ -144,6 +144,18 @@ class AbstractSandboxedTestFixture {
}
/**
+ * Checks if the actual value is NaN
+ *
+ * @param {*} actual
+ * the value which should be tested.
+ * @param {string} [message]
+ * the optimal message in case of a failure
+ */
+ assertNaN(actual, message) {
+ this.assertTrue(isNaN(actual), message);
+ }
+
+ /**
* Checks if the actual value is equal to null
*
* @param {*} actual
@@ -235,6 +247,8 @@ class AbstractSandboxedTestFixture {
throw new Error(`${message}`);
}
+
+
/**
* Dispatches the incoming ipc message to the handler and
* returns the result.
diff --git a/tests/tests/tests.js b/tests/tests/tests.js
index bf61f6e0..87f3e2ca 100755
--- a/tests/tests/tests.js
+++ b/tests/tests/tests.js
@@ -304,6 +304,13 @@
]
});
+ tests.set("app-updater", {
+ script: "${workspace}/managesieve.ui/updater/tests/SieveUpdaterTest.mjs",
+ require: [
+ "${workspace}/managesieve.ui/updater/SieveUpdater.mjs"
+ ]
+ });
+
exports.tests = tests;