From 0c084a5bd73b43d5bd03a3288f1dfbf5bcca821d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 3 Dec 2024 17:26:40 +0800 Subject: [PATCH] chore: remove code --- test/pull_request/action.test.ts | 4 +--- test/pull_request/repo.test.ts | 7 ------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/test/pull_request/action.test.ts b/test/pull_request/action.test.ts index 773623f..255ccfc 100644 --- a/test/pull_request/action.test.ts +++ b/test/pull_request/action.test.ts @@ -1,10 +1,8 @@ import { context } from '@actions/github' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import { afterEach, describe, expect, it, vi } from 'vitest' import { generatorLogStart } from '../../src/generator' describe('pull_request-payload', () => { - beforeEach(() => { - }) afterEach(() => { vi.restoreAllMocks() }) diff --git a/test/pull_request/repo.test.ts b/test/pull_request/repo.test.ts index 961a9b8..0be68c8 100644 --- a/test/pull_request/repo.test.ts +++ b/test/pull_request/repo.test.ts @@ -1,13 +1,6 @@ import { context } from '@actions/github' import { afterEach, describe, expect, it, vi } from 'vitest' -// vi.mock('@actions/github', () => ({ -// context: { -// action: 'opened', -// repo: vi.fn(), -// }, -// })) - describe('pull_request', () => { afterEach(() => { vi.restoreAllMocks()