Update test for extensions

This commit is contained in:
Faisal Salman
2024-06-08 00:07:16 +07:00
parent db3423a76c
commit bdcd927304
8 changed files with 284 additions and 90 deletions

View File

@@ -21,6 +21,10 @@ const FETCHER = 'fetcher';
const INAPP = 'inapp';
const MODULE = 'module';
//////////////////////
// COMMAND LINE APPS
/////////////////////
const CLIs = Object.freeze({
browser : [
// wget / curl / lynx
@@ -28,6 +32,10 @@ const CLIs = Object.freeze({
]
});
////////////////////////
// CRAWLERS / SPIDERS
///////////////////////
const Crawlers = Object.freeze({
browser : [
// Amazonbot - https://developer.amazon.com/amazonbot
@@ -70,6 +78,10 @@ const Crawlers = Object.freeze({
]
});
//////////////////
// EXTRA DEVICES
/////////////////
const ExtraDevices = Object.freeze({
device : [[
/(nook)[\w ]+build\/(\w+)/i, // Nook
@@ -146,6 +158,10 @@ const ExtraDevices = Object.freeze({
]
});
///////////////
// EMAIL APPS
//////////////
const Emails = Object.freeze({
browser : [
// Microsoft Outlook / Thunderbird
@@ -153,6 +169,10 @@ const Emails = Object.freeze({
]
});
///////////////////////
// ON-DEMAND SCRAPERS
//////////////////////
const Fetchers = Object.freeze({
browser : [
// BingPreview / Mastodon / Pinterestbot / Redditbot / Telegrambot / Twitterbot
@@ -181,12 +201,20 @@ const Fetchers = Object.freeze({
]
});
////////////////////
// IN-APP BROWSERS
///////////////////
const InApps = Object.freeze({
browser : [
[/chatlyio\/([\d\.]+)/i], [VERSION, 'Slack', [TYPE, INAPP]]
]
});
//////////////////////
// MEDIA PLAYER APPS
/////////////////////
const MediaPlayers = Object.freeze({
browser : [[
@@ -293,6 +321,10 @@ const MediaPlayers = Object.freeze({
]
});
////////////////////////
// MODULES / LIBRARIES
///////////////////////
const Modules = Object.freeze({
browser : [
// Axios/jsdom/Scrapy