Skip to content

Commit

Permalink
fix: Explicitly mark async calls as void
Browse files Browse the repository at this point in the history
Avoids `no-floating-promises` warning from eslint
<https://typescript-eslint.io/rules/no-floating-promises/>.
  • Loading branch information
l0b0 committed Jan 29, 2024
1 parent d0cdc40 commit 5bdc865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__test__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { describe, it } from 'node:test';

import { helloWorld } from '../index.js';

describe('helloWorld', () => {
it('should respond with hello world', () => {
void describe('helloWorld', () => {
void it('should respond with hello world', () => {
assert.equal(helloWorld('test'), 'hello world! test');
});
});

0 comments on commit 5bdc865

Please sign in to comment.