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

More tests, use fns from utils and rework core #191

Merged
merged 18 commits into from
Jul 28, 2017

Conversation

emmatown
Copy link
Member

What:

Why:

How:

Checklist:

  • Documentation
  • Tests
  • Code complete

@codecov-io
Copy link

codecov-io commented Jul 27, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@477c715). Click here to learn what that means.
The diff coverage is 79.62%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #191   +/-   ##
=========================================
  Coverage          ?   90.82%           
=========================================
  Files             ?       22           
  Lines             ?      850           
  Branches          ?      220           
=========================================
  Hits              ?      772           
  Misses            ?       63           
  Partials          ?       15
Impacted Files Coverage Δ
src/parser.js 100% <100%> (ø)
src/glamor/CSSPropertyOperations/index.js 66.12% <100%> (ø)
src/glamor/clean.js 95.83% <100%> (ø)
src/glamor/CSSPropertyOperations/CSSProperty.js 100% <100%> (ø)
src/react/index.js 100% <100%> (ø)
src/utils.js 73.8% <11.11%> (ø)
src/sheet.js 59.7% <85.71%> (ø)
src/index.js 93.77% <93.54%> (ø)

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 477c715...499577a. Read the comment docs.

src/index.js Outdated
let x = map(
path.split(','),
x =>
x.indexOf('&') >= 0 ? x.replace(/&/gm, `.css-${id}`) : `.css-${id}${x}`
Copy link
Member

Choose a reason for hiding this comment

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

We should probably hoist this callback and the regex inside.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can't because it uses id

src/index.js Outdated
.join(',')
return reduce(
bs,
(arr, b) => arr.concat(map(as, a => b.replace(/&/g, a))),
Copy link
Member

Choose a reason for hiding this comment

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

We could hoist this up as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can't because it uses a

Copy link
Member Author

Choose a reason for hiding this comment

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

wait, i might be wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

We can't hoist it because it uses as

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants