| 1 |
// Copyright (c) 2021, Maxime Soulé |
| 2 |
// All rights reserved. |
| 3 |
// |
| 4 |
// This source code is licensed under the BSD-style license found in the |
| 5 |
// LICENSE file in the root directory of this source tree. |
| 6 |
|
| 7 |
package nocolor_test |
| 8 |
|
| 9 |
import ( |
| 10 |
"os" |
| 11 |
"testing" |
| 12 |
|
| 13 |
_ "github.com/maxatome/go-testdeep/helpers/nocolor" |
| 14 |
) |
| 15 |
|
| 16 |
func TestNocolor(t *testing.T) { |
| 17 |
tdColor := os.Getenv("TESTDEEP_COLOR") |
| 18 |
if tdColor != "off" { |
| 19 |
t.Errorf(`TESTDEEP_COLOR expected to be "off" but is %q`, tdColor) |
| 20 |
} |
| 21 |
} |