test: puppeteer

This commit is contained in:
DIYgod
2024-01-31 02:27:41 +08:00
parent 2e7bd66940
commit 40de7c111a
+1
View File
@@ -74,6 +74,7 @@ describe('puppeteer', () => {
browser = await puppeteer();
// trailing slash will cause net::ERR_NO_SUPPORTED_PROXIES, prohibit it
console.log(browser.process()?.spawnargs);
expect(browser.process()?.spawnargs.some((arg) => /^--proxy-server=http:\/\/.*[^/]$/.test(arg))).toBe(true);
});