Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhorning committed Jul 7, 2024
1 parent 68f3a9c commit 9506eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.44.4
- run: deno fmt --check .
- run: deno fmt --check .
- run: deno lint
12 changes: 6 additions & 6 deletions tests/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 9506eb1

Please sign in to comment.