From a359d9f8ca94406b05af440b6108d43a4175a8eb Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sun, 26 Apr 2026 22:13:32 +0200 Subject: [PATCH] chore: fix pad issue --- src/tests/container/specs/api/pad.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tests/container/specs/api/pad.ts b/src/tests/container/specs/api/pad.ts index be8ffb64f..404314cbf 100644 --- a/src/tests/container/specs/api/pad.ts +++ b/src/tests/container/specs/api/pad.ts @@ -14,27 +14,27 @@ const api = supertest(`http://${settings.ip}:${settings.port}`); const apiVersion = 1; describe('Connectivity', function () { - it('can connect', function (done) { - api.get('/api/') + it('can connect', async function () { + await api.get('/api/') .expect('Content-Type', /json/) - .expect(200, done); + .expect(200); }); }); describe('API Versioning', function () { - it('finds the version tag', function (done) { - api.get('/api/') + it('finds the version tag', async function () { + await api.get('/api/') .expect((res) => { if (!res.body.currentVersion) throw new Error('No version set in API'); return; }) - .expect(200, done); + .expect(200); }); }); describe('Permission', function () { - it('errors with invalid OAuth token', function (done) { - api.get(`/api/${apiVersion}/createPad?padID=test`) - .expect(401, done); + it('errors with invalid OAuth token', async function () { + await api.get(`/api/${apiVersion}/createPad?padID=test`) + .expect(401); }); });