mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
chore: migrate api-service-workers-spec.ts to vitest
This commit is contained in:
@@ -2,6 +2,7 @@ import { session, webContents, WebContents } from 'electron/main';
|
||||
|
||||
import { expect } from 'chai';
|
||||
import { v4 } from 'uuid';
|
||||
import { afterEach, beforeAll, beforeEach, describe, it } from 'vitest';
|
||||
|
||||
import { on, once } from 'node:events';
|
||||
import * as fs from 'node:fs';
|
||||
@@ -18,7 +19,7 @@ describe('session.serviceWorkers', () => {
|
||||
let baseUrl: string;
|
||||
let w: WebContents;
|
||||
|
||||
before(async () => {
|
||||
beforeAll(async () => {
|
||||
ses = session.fromPartition(partition);
|
||||
await ses.clearStorageData();
|
||||
});
|
||||
Reference in New Issue
Block a user