chore: cleanup spec-main/ambient.d.ts (#32363)

This commit is contained in:
Milan Burda 2022-01-07 09:52:47 +01:00 committed by GitHub
parent 88ae6c0635
commit 7678a0aebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 29 deletions

View file

@ -585,7 +585,6 @@ describe('chromium features', () => {
it('should register for custom scheme', (done) => {
const customSession = session.fromPartition('custom-scheme');
const { serviceWorkerScheme } = global as any;
customSession.protocol.registerFileProtocol(serviceWorkerScheme, (request, callback) => {
let file = url.parse(request.url).pathname!;
if (file[0] === '/' && process.platform === 'win32') file = file.slice(1);
@ -1250,7 +1249,6 @@ describe('chromium features', () => {
});
describe('enableWebSQL webpreference', () => {
const standardScheme = (global as any).standardScheme;
const origin = `${standardScheme}://fake-host`;
const filePath = path.join(fixturesPath, 'pages', 'storage', 'web_sql.html');
const sqlPartition = 'web-sql-preference-test';