Skip to content
Snippets Groups Projects
Verified Commit 1ae41b46 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 799ec363
No related branches found
No related tags found
No related merge requests found
Showing with 20 additions and 117 deletions
'use strict';
import chai from "chai"
import {Link} from "../../../../source/dom/resource/link.mjs";
import {DataUrl} from "../../../../source/types/dataurl.mjs";
import {ID} from "../../../../source/types/id.mjs";
import {Link} from "../../../../../application/source/dom/resource/link.mjs";
import {DataUrl} from "../../../../../application/source/types/dataurl.mjs";
import {ID} from "../../../../../application/source/types/id.mjs";
import {chaiDom} from "../../../util/chai-dom.mjs";
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../util/cleanupdom.mjs";
import {initJSDOM} from "../../../util/jsdom.mjs";
......
'use strict';
import chai from "chai"
import {Stylesheet} from "../../../../../source/dom/resource/link/stylesheet.mjs";
import {DataUrl} from "../../../../../source/types/dataurl.mjs";
import {ID} from "../../../../../source/types/id.mjs";
import {Stylesheet} from "../../../../../../application/source/dom/resource/link/stylesheet.mjs";
import {DataUrl} from "../../../../../../application/source/types/dataurl.mjs";
import {ID} from "../../../../../../application/source/types/id.mjs";
import {chaiDom} from "../../../../util/chai-dom.mjs";
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../../util/cleanupdom.mjs";
import {initJSDOM} from "../../../../util/jsdom.mjs";
......
'use strict';
import chai from "chai"
import {Script} from "../../../../source/dom/resource/script.mjs";
import {DataUrl} from "../../../../source/types/dataurl.mjs";
import {ID} from "../../../../source/types/id.mjs";
import {Script} from "../../../../../application/source/dom/resource/script.mjs";
import {DataUrl} from "../../../../../application/source/types/dataurl.mjs";
import {ID} from "../../../../../application/source/types/id.mjs";
import {chaiDom} from "../../../util/chai-dom.mjs";
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../util/cleanupdom.mjs";
import {initJSDOM} from "../../../util/jsdom.mjs";
......
import {expect} from "chai"
import {Factory} from "../../../../source/dom/worker/factory.mjs";
import {getGlobal} from "../../../../source/types/global.mjs";
import {Factory} from "../../../../../application/source/dom/worker/factory.mjs";
import {getGlobal} from "../../../../../application/source/types/global.mjs";
import {initJSDOM, isNode} from "../../../util/jsdom.mjs";
const global = getGlobal();
......
import {expect} from "chai"
import {Fetch} from "../../../../source/i18n/providers/fetch.mjs";
import {Translations} from "../../../../source/i18n/translations.mjs";
import {getGlobal} from "../../../../source/types/global.mjs";
import {Fetch} from "../../../../../application/source/i18n/providers/fetch.mjs";
import {Translations} from "../../../../../application/source/i18n/translations.mjs";
import {getGlobal} from "../../../../../application/source/types/global.mjs";
const global = getGlobal();
......
import {expect} from "chai";
import {ConsoleHandler} from "../../../../source/logging/handler/console.mjs";
import {LogEntry} from "../../../../source/logging/logentry.mjs";
import {FATAL} from "../../../../source/logging/logger.mjs";
import {ConsoleHandler} from "../../../../../application/source/logging/handler/console.mjs";
import {LogEntry} from "../../../../../application/source/logging/logentry.mjs";
import {FATAL} from "../../../../../application/source/logging/logger.mjs";
describe('Logging', function () {
......
import {expect} from "chai"
import {Version} from "../../source/types/version.mjs";
import {Version,getMonsterVersion} from "../../../application/source/types/version.mjs";
describe('Monster', function () {
describe('.getVersion()', function () {
describe('.getMonsterVersion()', function () {
let monsterVersion
/**#@+ dont touch, replaced by make with package.json version */
monsterVersion = new Version('1.31.0')
/**#@-*/
let m = Monster.getVersion();
let m = getMonsterVersion();
it('should ' + monsterVersion + ' is ' + m, function () {
expect(m.compareTo(monsterVersion)).is.equal(0);
......
import {expect} from "chai"
import {assignToNamespace} from "../../source/namespace.mjs";
describe('Namespace', function () {
describe('assignToNamespace', function () {
it('assignToNamespace() without arguments throw exception', function () {
expect(() => assignToNamespace()).to.throw(Error)
});
it('assignToNamespace() with wrong arguments throw exception', function () {
expect(() => assignToNamespace({})).to.throw(Error)
});
it('assignToNamespace() without function arguments throw exception', function () {
expect(() => assignToNamespace('test')).to.throw(Error)
});
it('assignToNamespace() with wrong arguments throw exception', function () {
expect(() => assignToNamespace('test', {})).to.throw(Error)
});
it('assignToNamespace() with wrong arguments throw exception', function () {
function testMock() {
}
expect(assignToNamespace('test', testMock)).to.be.an.instanceof(Object)
});
it('assignToNamespace() with corrupted function as arguments throw exception', function () {
function testMock() {
}
// delete name property for toString detection
delete testMock.name;
testMock.toString = () => {
return {}
}
expect(() => assignToNamespace('test', testMock)).to.throw(Error)
});
it('assignToNamespace() with corrupted function as arguments throw exception', function () {
function testMock() {
}
// delete name property for toString detection
delete testMock.name;
testMock.toString = () => {
return "unsupported"
}
expect(() => assignToNamespace('test', testMock)).to.throw(Error)
});
it('assignToNamespace() with corrupted function as arguments throw exception', function () {
function testMock() {
}
// delete name property for toString detection
delete testMock.name;
expect(assignToNamespace('test', testMock)).to.be.an.instanceof(Object)
});
it('assignToNamespace() without name', function () {
class testMockClass {
}
delete testMockClass.name;
expect(assignToNamespace('test', testMockClass)).to.be.an.instanceof(Object)
});
it('Namespace().toString() should return string', function () {
class testMockClass {
}
expect(assignToNamespace('Test', testMockClass).toString()).to.be.equal('Monster.Test');
});
});
});
import {
Monster,
isPrimitive,
isBoolean,
isString,
......
import {Stack} from "../../../../application/source/types/stack.mjs";
import {
Monster,
typeOf
} from "../../../../application/source/types/typeof.mjs"
......
import {
Monster,
validatePrimitive,
validateBoolean,
validateString,
......
import {
Monster,
Version
} from "../../../../application/source/types/version.mjs"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment