Skip to content

Commit

Permalink
remove debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tranhl committed Nov 28, 2024
1 parent 3a33a3a commit 22856a2
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions src/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { describe, it, beforeEach, expect, vi } from 'vitest'
import { main, updateDescription } from './main'
import type { Octokit } from './types'
import { updateDescription } from './main'

beforeEach(() => {
vi.unstubAllEnvs()
Expand Down Expand Up @@ -53,46 +52,3 @@ describe('updateDescription', () => {
expect(actual).toEqual(expected)
})
})

describe('main', () => {
it('should work', async () => {
await main({
octokit: {} as unknown as Octokit,
currentPullRequest: {
number: 361,
head: {
ref: 'test-branch',
},
base: {
ref: 'document-setup',
},
state: 'open',
},
pullRequests: [
// {
// number: 360,
// head: {
// ref: 'document-setup',
// },
// base: {
// ref: 'main',
// },
// state: 'open',
// },
{
number: 361,
head: {
ref: 'test-branch',
},
base: {
ref: 'document-setup',
},
state: 'open',
},
],
mainBranch: 'main',
perennialBranches: [],
skipSingleStacks: false,
})
})
})

0 comments on commit 22856a2

Please sign in to comment.