Skip to content

Commit

Permalink
util text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 22, 2024
1 parent ef8cbe4 commit f302dee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit f302dee

Please sign in to comment.