38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
"use strict";
|
|
|
|
// Test suite
|
|
const api = require("./suites/api-test.js").suite;
|
|
const credentials = require("./suites/credentials-test.js").suite;
|
|
const network = require("./suites/network-helper-test.js").suite;
|
|
const scraper = require("./suites/scraper-test.js").suite;
|
|
const searcher = require("./suites/searcher-test.js").suite;
|
|
const uScraper = require("./suites/user-scraper-test.js").suite;
|
|
const tags = require("./suites/tag-parser-test.js").suite;
|
|
|
|
describe("Test basic function", function testBasic() {
|
|
//#region Set-up
|
|
this.timeout(15000); // All tests in this suite get 15 seconds before timeout
|
|
//#endregion Set-up
|
|
|
|
describe("Test credentials class", credentials.bind(this));
|
|
describe("Test network helper", network.bind(this));
|
|
describe("Test tag parser", tags.bind(this));
|
|
});
|
|
|
|
describe("Test F95 modules", function testF95Modules() {
|
|
//#region Set-up
|
|
this.timeout(15000); // All tests in this suite get 15 seconds before timeout
|
|
//#endregion Set-up
|
|
|
|
describe("Test scraper methods", scraper.bind(this));
|
|
describe("Test searcher methods", searcher.bind(this));
|
|
describe("Test user scraper methods", uScraper.bind(this));
|
|
});
|
|
|
|
describe("Test complete API", function testAPI() {
|
|
//#region Set-up
|
|
this.timeout(15000); // All tests in this suite get 15 seconds before timeout
|
|
//#endregion Set-up
|
|
|
|
describe("Test API", api.bind(this));
|
|
}); |