From 5053e3e4722da0dd3d380caf5210409afb7b6a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 3 May 2024 19:07:18 +0200 Subject: [PATCH] fix: test if SKOLENGO_TOKENSET envvar is set --- test/user.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/user.test.ts b/test/user.test.ts index d11b318..9635dde 100644 --- a/test/user.test.ts +++ b/test/user.test.ts @@ -3,7 +3,7 @@ import { Skolengo } from '../src/index' import './common' const SKOLENGO_TOKENSET = process.env.SKOLENGO_TOKENSET -const describeAuthenticated = SKOLENGO_TOKENSET !== undefined ? describe : describe.skip +const describeAuthenticated = !!SKOLENGO_TOKENSET ? describe : describe.skip /** * Tests unitaires des endpoints qui nécessitent une authentification