jxnblk / tachyons-components

React UI components powered by Tachyons with a styled-components like API
MIT License
411 stars 15 forks source link

Fix to support template tokens that return more than one class #6

Closed timReynolds closed 6 years ago

timReynolds commented 6 years ago

Without this additional reduce to flatten the array returned by each template token the class output is "bg-blue,grow" if more than one class is returned.

Includes test case and update to ignore node_modules.

codecov-io commented 6 years ago

Codecov Report

Merging #6 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          50     51    +1     
=====================================
+ Hits           50     51    +1
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) :arrow_up:

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 aa3e157...66bbd32. Read the comment docs.