Skip to content

Commit 372611b

Browse files
committed
feat(e2e): add /api/v0/repo/gc test
1 parent c36a2b0 commit 372611b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

e2e-tests/gc.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { test, expect } from '@playwright/test'
2+
import { PORT } from '../src/constants.js'
3+
4+
test('POST /api/v0/repo/gc', async ({ page }) => {
5+
const result = await page.request.post(`http://localhost:${PORT}/api/v0/repo/gc`)
6+
expect(result?.status()).toBe(200)
7+
8+
const maybeContent = await result?.text()
9+
expect(maybeContent).toEqual('OK')
10+
})

0 commit comments

Comments
 (0)