Skip to content

Commit

Permalink
feat: モック関数にコメントを追加し、可読性を向上
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Jan 25, 2025
1 parent 97f2d44 commit 5587acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e/browser/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export async function mockShowExportFileDialog(page: Page): Promise<{
};
};

// モックを差し込む
await page.evaluate(() => {
const _window = window as unknown as _Window;
_window._mockShowExportFileDialog = {
Expand Down Expand Up @@ -45,6 +46,7 @@ export async function mockWriteFile(page: Page): Promise<{
_mockWriteFile: Record<string | TestFileId, Uint8Array>;
};

// モックを差し込む
await page.evaluate(
({ sucecssResult }) => {
const _window = window as unknown as _Window;
Expand Down

0 comments on commit 5587acb

Please sign in to comment.