summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js')
-rw-r--r--includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js71
1 files changed, 0 insertions, 71 deletions
diff --git a/includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js b/includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js
deleted file mode 100644
index 7c7850e..0000000
--- a/includes/external/matrix/node_modules/loglevel/test/integration-smoke-test.js
+++ /dev/null
@@ -1,71 +0,0 @@
-"use strict";
-
-define(['../lib/loglevel', 'test/test-helpers'], function(log, testHelpers) {
- var describeIf = testHelpers.describeIf;
- var itIf = testHelpers.itIf;
-
- describe("Integration smoke tests:", function() {
- describe("log methods", function() {
- it("can all be disabled", function() {
- log.setLevel(log.levels.SILENT);
- log.trace("trace");
- log.debug("debug");
- log.log("log");
- log.info("info");
- log.warn("warn");
- log.error("error");
- });
- });
-
- describeIf(typeof console !== "undefined", "log methods", function() {
- it("can all be called", function() {
- if (typeof console !== "undefined") {
- log.setLevel(log.levels.TRACE);
- }
-
- log.trace("trace");
- log.debug("debug");
- log.log("log");
- log.info("info");
- log.warn("warn");
- log.error("error");
- });
- });
-
- describeIf(typeof console !== "undefined", "log levels", function() {
- beforeEach(function() {
- this.addMatchers({
- "toBeTheStoredLevel" : testHelpers.toBeTheStoredLevel
- });
- });
-
- it("are all settable", function() {
- log.setLevel(log.levels.TRACE);
- log.setLevel(log.levels.DEBUG);
- log.setLevel(log.levels.INFO);
- log.setLevel(log.levels.WARN);
- log.setLevel(log.levels.ERROR);
- });
-
- itIf(testHelpers.isAnyLevelStoragePossible(), "are persisted", function() {
- log.setLevel(log.levels.TRACE);
- expect('trace').toBeTheStoredLevel();
-
- log.setLevel(log.levels.DEBUG);
- expect('debug').toBeTheStoredLevel();
-
- log.setLevel(log.levels.INFO);
- expect('info').toBeTheStoredLevel();
-
- log.setLevel(log.levels.WARN);
- expect('warn').toBeTheStoredLevel();
-
- log.setLevel(log.levels.ERROR);
- expect('error').toBeTheStoredLevel();
-
- log.setLevel(log.levels.SILENT);
- expect('silent').toBeTheStoredLevel();
- });
- });
- });
-});