Skip to content

Commit

Permalink
create a valid SupportsColor Level
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 15, 2023
1 parent c2a22f6 commit aef670e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-code-frame/test/index.js
Expand Up @@ -15,7 +15,7 @@ describe("@babel/code-frame", function () {
beforeEach(function () {
originalChalkSupportsColor = chalk.supportsColor;
originalChalkLevel = chalk.level;
chalk.supportsColor = supported;
chalk.supportsColor = supported ? { Level: 1 } : false;
chalk.level = supported ? 1 : 0;
});

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-highlight/test/index.js
Expand Up @@ -11,7 +11,7 @@ describe("@babel/highlight", function () {
beforeEach(function () {
originalChalkSupportsColor = chalk.supportsColor;
originalChalkLevel = chalk.level;
chalk.supportsColor = supported;
chalk.supportsColor = supported ? { Level: 1 } : false;
chalk.level = supported ? 1 : 0;
});

Expand Down

0 comments on commit aef670e

Please sign in to comment.