Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minimum detected chalk level #99

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

larsbs
Copy link
Contributor

@larsbs larsbs commented Nov 17, 2020

Shouldn't this line be Math.max instead of Math.min if we want to support a minimum level? The way it is now, Level.Basic never gets applied if chalk detects a level of 0 since Math.min(0, 1) === 0

@codecov
Copy link

codecov bot commented Nov 17, 2020

Codecov Report

Merging #99 (eb3b4e9) into master (1499a76) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   70.17%   70.17%           
=======================================
  Files           2        2           
  Lines          57       57           
  Branches       12       12           
=======================================
  Hits           40       40           
  Misses         17       17           
Impacted Files Coverage Δ
src/theme.ts 34.78% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1499a76...eb3b4e9. Read the comment docs.

Copy link
Owner

@felixfbecker felixfbecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@felixfbecker felixfbecker changed the title Fix minimum detected chalk level fix: minimum detected chalk level Nov 21, 2020
Shouldn't this line be `Math.max` instead of `Math.min` if we want to support a minimum level? The way it is now, `Level.Basic` never gets applied if chalk detects a `level` of `0` since `Math.min(0, 1) === 0`
@felixfbecker felixfbecker merged commit 7384705 into felixfbecker:master Nov 21, 2020
@github-actions
Copy link

🎉 This PR is included in version 2.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@larsbs larsbs deleted the patch-1 branch November 23, 2020 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants