From 5bdc865b4b8862f88ada0c415f07bbafd3f84eda Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 30 Jan 2024 12:51:45 +1300 Subject: [PATCH] fix: Explicitly mark async calls as void Avoids `no-floating-promises` warning from eslint . --- src/__test__/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__test__/index.test.ts b/src/__test__/index.test.ts index f5ce346..9cc7adb 100644 --- a/src/__test__/index.test.ts +++ b/src/__test__/index.test.ts @@ -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'); }); });