Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

test: add missing mergeThemes export tests#128

Merged
levithomason merged 1 commit intomasterfrom
test/merge-themes
Aug 24, 2018
Merged

test: add missing mergeThemes export tests#128
levithomason merged 1 commit intomasterfrom
test/merge-themes

Conversation

@levithomason
Copy link
Member

@levithomason levithomason commented Aug 24, 2018

There is currently a bug when passing a partial theme that does not contain componentVariables to the Provider. The Provider throws as it tries to merge keys that don't exist.

This PR fixes that small bug and also adds full test coverage to mergeThemes and all of its exports.

/cc @miroslavstastny this includes the fixes and tests from #106 plus many more. I also addressed your comments here regarding using mergeComponentVariables directly and breaking Header's variables. There are now tests for this usage as well.


This PR seems to have fixed 4 previously broken Header examples showing the description prop where color was not being applied:

image

...merging as this is blocking my work in getting started documentation.

@codecov
Copy link

codecov bot commented Aug 24, 2018

Codecov Report

Merging #128 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #128   +/-   ##
=======================================
  Coverage   88.37%   88.37%           
=======================================
  Files          47       47           
  Lines         774      774           
  Branches      101      101           
=======================================
  Hits          684      684           
  Misses         87       87           
  Partials        3        3

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 5e5d893...5623bf1. Read the comment docs.

@levithomason levithomason merged commit 1da274c into master Aug 24, 2018
@levithomason levithomason deleted the test/merge-themes branch August 30, 2018 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant