From f302dee113a0367182aeac75bf15a9389dabd7d0 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 21 Feb 2024 23:27:05 -0800 Subject: [PATCH] util text fix --- test/util.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/util.js b/test/util.js index 3eeb4e0..92db289 100644 --- a/test/util.js +++ b/test/util.js @@ -4,13 +4,14 @@ const { describe, it } = require('node:test') const util = require('../lib/util') describe('util', function () { - describe('setEnv', function () { - it('sets process.env.NODE_ENV', async () => { - assert.equal(process.env.NODE_ENV, undefined) - util.setEnv() - assert.ok(process.env.NODE_ENV) + if (process.env.NODE_ENV === undefined) { + describe('setEnv', function () { + it('sets process.env.NODE_ENV', async () => { + util.setEnv() + assert.ok(process.env.NODE_ENV) + }) }) - }) + } describe('meta', () => { it('returns the package version', () => {