Skip to content

Commit

Permalink
Change duplicate tests for @babel/highlight getChalk method (#10093)
Browse files Browse the repository at this point in the history
* removed duplicate tests for @babel/highlight getChalk method

* changed second 'getChalk' test case for when colors are not supported
  • Loading branch information
letladi authored and nicolo-ribaudo committed Jun 15, 2019
1 parent f92c2ae commit 6852bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-highlight/test/index.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 6852bf6

Please sign in to comment.