Skip to content

Commit

Permalink
Format test: don't fail if colors are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Apr 15, 2016
1 parent 3c1b128 commit b5b01d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/format_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ end

describe("format", function()
it("returns formatted report", function()
if package.config:sub(1, 1) == "\\" and not os.getenv("ANSICON") then
pending("uses terminal colors")
end

assert.equal([[Checking stdin 1 warning
stdin:2:7: unused global variable foo
Expand Down

0 comments on commit b5b01d1

Please sign in to comment.