Skip to content

Commit

Permalink
github actions again?
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyraspopov committed Oct 16, 2024
1 parent 88eecaa commit 96634bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/environments.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ let fs = require("fs")
let pc = require("../picocolors.js")
let assert = require("assert")
let source = fs.readFileSync(__dirname + "/../picocolors.js", "utf-8")
let CI = process.env.CI

test("ci server", () => {
let pc = initModuleEnv({ env: { TERM: "dumb", CI: "1" } })
Expand All @@ -23,7 +24,7 @@ test("env NO_COLOR", () => {
})

test("env NO_COLOR empty", () => {
let pc = initModuleEnv({ env: { NO_COLOR: "" } })
let pc = initModuleEnv({ env: { NO_COLOR: "", CI } })
assert.equal(pc.isColorSupported, true)
assert.equal(pc.red("text"), pc.createColors(true).red("text"))
})
Expand Down

0 comments on commit 96634bf

Please sign in to comment.