From 6852bf6415617bcb80cee48a202d585f25f1a008 Mon Sep 17 00:00:00 2001 From: Letladi Sebesho Date: Sat, 15 Jun 2019 09:04:35 +0200 Subject: [PATCH] Change duplicate tests for @babel/highlight getChalk method (#10093) * removed duplicate tests for @babel/highlight getChalk method * changed second 'getChalk' test case for when colors are not supported --- packages/babel-highlight/test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-highlight/test/index.js b/packages/babel-highlight/test/index.js index 2aeab67a9b..a33f79fd50 100644 --- a/packages/babel-highlight/test/index.js +++ b/packages/babel-highlight/test/index.js @@ -94,8 +94,8 @@ describe("@babel/highlight", function() { }); }); - describe("when colors are supported", function() { - stubColorSupport(true); + describe("when colors are not supported", function() { + stubColorSupport(false); describe("when forceColor is not passed", function() { it("returns a Chalk instance", function() {