From 9506eb1fff840e4cf6d855257ea2d19433062c74 Mon Sep 17 00:00:00 2001 From: Jersey Date: Sun, 7 Jul 2024 17:26:17 -0400 Subject: [PATCH] linting --- .github/workflows/lint.yml | 3 ++- tests/rest.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 352f743..35ece53 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,4 +11,5 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.44.4 - - run: deno fmt --check . \ No newline at end of file + - run: deno fmt --check . + - run: deno lint \ No newline at end of file diff --git a/tests/rest.ts b/tests/rest.ts index e64313c..b26948b 100644 --- a/tests/rest.ts +++ b/tests/rest.ts @@ -145,8 +145,8 @@ Deno.test('api chats', async (i) => { }); await i.step('get single chat (failed)', async () => { - // @ts-ignore: clear chat cache - client.chat_cache.set('test', undefined) + // @ts-ignore: clear chat cache + client.chat_cache.set('test', undefined); mockFetch('http://localhost:8000/chats/test', { status: 404, @@ -196,8 +196,8 @@ Deno.test('api get post', async (i) => { }); await i.step('get post (failed)', async () => { - // @ts-ignore: clear post cache - client.post_cache.set('test', undefined) + // @ts-ignore: clear post cache + client.post_cache.set('test', undefined); mockFetch('http://localhost:8000/posts?id=test', { status: 404, @@ -224,8 +224,8 @@ Deno.test('api users', async (i) => { }); await i.step('get user (failed)', async () => { - // @ts-ignore: clear user cache - client.user_cache.set('test', undefined) + // @ts-ignore: clear user cache + client.user_cache.set('test', undefined); mockFetch('http://localhost:8000/users/test', { status: 404,