From 6bf16d4455d13731c966bad671237722597b6300 Mon Sep 17 00:00:00 2001 From: David Burles Date: Thu, 26 Nov 2020 12:12:21 +1100 Subject: [PATCH] add additional mergeModifiers test --- src/lib/mergeModifiers.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/mergeModifiers.test.js b/src/lib/mergeModifiers.test.js index 9bbeaa5..3b7b838 100644 --- a/src/lib/mergeModifiers.test.js +++ b/src/lib/mergeModifiers.test.js @@ -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,