Skip to content

Commit 606b9ec

Browse files
committed
fix ci
1 parent e6982ad commit 606b9ec

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

.github/workflows/worker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
run: pnpm exec biome ci || true
3030
- name: Test (worker)
3131
working-directory: ./worker
32-
run: pnpm run test
32+
run: |
33+
ln -s ../.wrangler ./.wrangler
34+
pnpm run test
3335
deploy:
3436
runs-on: ubuntu-latest
3537
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

worker/src/index.spec.ts

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,9 @@ describe("API", () => {
344344
expect(await doesExist("1111")).toBe(true);
345345

346346
const res = await app.request(
347-
"http://vh7.uk/api/delete/1111",
347+
"http://vh7.uk/api/delete/1111?deleteToken=keyboardcat",
348348
{
349349
method: "DELETE",
350-
headers: {
351-
"Content-Type": "application/json",
352-
},
353-
body: JSON.stringify({
354-
deleteToken: "keyboardcat",
355-
}),
356350
},
357351
appEnv,
358352
);
@@ -369,15 +363,9 @@ describe("API", () => {
369363
expect(await doesExist("2222")).toBe(true);
370364

371365
const res = await app.request(
372-
"http://vh7.uk/api/delete/2222",
366+
"http://vh7.uk/api/delete/2222?deleteToken=hi",
373367
{
374368
method: "DELETE",
375-
headers: {
376-
"Content-Type": "application/json",
377-
},
378-
body: JSON.stringify({
379-
deleteToken: "hi",
380-
}),
381369
},
382370
appEnv,
383371
);
@@ -390,15 +378,9 @@ describe("API", () => {
390378
expect(await doesExist("AAAA")).toBe(true);
391379

392380
const res = await app.request(
393-
"http://vh7.uk/api/delete/AAAA",
381+
"http://vh7.uk/api/delete/AAAA?deleteToken=keyboardcat",
394382
{
395383
method: "DELETE",
396-
headers: {
397-
"Content-Type": "application/json",
398-
},
399-
body: JSON.stringify({
400-
deleteToken: "keyboardcat",
401-
}),
402384
},
403385
appEnv,
404386
);

0 commit comments

Comments
 (0)