From 372611be205fcf7b9ee7684136046785a0f111f5 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:21:51 -0700 Subject: [PATCH] feat(e2e): add /api/v0/repo/gc test --- e2e-tests/gc.spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 e2e-tests/gc.spec.ts diff --git a/e2e-tests/gc.spec.ts b/e2e-tests/gc.spec.ts new file mode 100644 index 0000000..a9424b3 --- /dev/null +++ b/e2e-tests/gc.spec.ts @@ -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') +})