From 6bcc17d2470673ab365cd9cccc1ab9be5874dbe2 Mon Sep 17 00:00:00 2001 From: tabcat Date: Mon, 18 Sep 2023 19:34:20 +0100 Subject: [PATCH] test: fix noToken logic --- test/test-zzzync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-zzzync.ts b/test/test-zzzync.ts index 6737b1d8..b21e2896 100644 --- a/test/test-zzzync.ts +++ b/test/test-zzzync.ts @@ -30,7 +30,7 @@ import { isBrowser } from 'wherearewe' const testName = 'zzzync-replicator' const token = process.env.W3_TOKEN -const noToken = typeof token === 'string' && Boolean(token.length) +const noToken = typeof token === 'string' && token.length === 0 let _describe: Mocha.SuiteFunction | Mocha.PendingSuiteFunction if (noToken) {