Disable unit tests for now

This commit is contained in:
varjolintu 2024-01-14 10:42:38 +02:00
parent 81a6df3f15
commit b91820f694

View file

@ -72,8 +72,10 @@ async function testGeneral() {
assertRegex(siteMatch(m[0], m[1]), m[2], testCard, `siteMatch() for ${m[1]}`);
}
// TODO: Enable these tests later. Not sure how to tests cookies API which requires to be running in the
// background script.
// Top-Level-Domain tests
const tldUrls = [
/*const tldUrls = [
[ 'another.example.co.uk', 'co.uk' ],
[ 'www.example.com', 'com' ],
[ 'github.com', 'com' ],
@ -86,7 +88,7 @@ async function testGeneral() {
[ 'jap.an.ide.kyoto.jp', 'ide.kyoto.jp' ], // ide.kyoto.jp is a TLD
];
for (const d of domains) {
for (const d of tldUrls) {
kpxcAssert(page.getTopLevelDomainFromUrl(d[0]), d[1], testCard, 'getTopLevelDomainFromUrl() for ' + d[0]);
}
@ -106,7 +108,7 @@ async function testGeneral() {
for (const d of domains) {
kpxcAssert(page.getBaseDomainFromUrl(d[0]), d[1], testCard, 'getBaseDomainFromUrl() for ' + d[0]);
}
}*/
}
// Input field matching (keepassxc-browser.js)