Skip to content

Commit

Permalink
add additional mergeModifiers test
Browse files Browse the repository at this point in the history
  • Loading branch information
dburles committed Nov 26, 2020
1 parent d3cc85a commit 6bf16d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/mergeModifiers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ const customModifiers = {

module.exports = (tests) => {
tests.add('mergeModifiers', async () => {
const modifierStyles = mergeModifiers({ size: 'small' }, modifiers);

assert.strictEqual(modifierStyles.title.fontSize, 3);
});

tests.add('mergeModifiers: customModifiers', async () => {
const modifierStyles = mergeModifiers(
{ size: 'small' },
modifiers,
Expand Down

0 comments on commit 6bf16d4

Please sign in to comment.