Skip to content

Commit

Permalink
feat(e2e): add /api/v0/repo/gc test
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Oct 25, 2023
1 parent c36a2b0 commit 372611b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e-tests/gc.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { test, expect } from '@playwright/test'
import { PORT } from '../src/constants.js'

test('POST /api/v0/repo/gc', async ({ page }) => {
const result = await page.request.post(`http://localhost:${PORT}/api/v0/repo/gc`)
expect(result?.status()).toBe(200)

const maybeContent = await result?.text()
expect(maybeContent).toEqual('OK')
})

0 comments on commit 372611b

Please sign in to comment.