From 3b10553097f847f8d8a48d44e9e8171a80c5bb51 Mon Sep 17 00:00:00 2001 From: Andrew Powell Date: Thu, 7 Mar 2019 10:41:57 -0500 Subject: [PATCH] fix: toString should stringify node (#74) * fix: toString should stringify node * refactor: rename, rework inherited nodes for toString * chore: remove commented code --- lib/ValuesParser.js | 1 + lib/ValuesStringifier.js | 7 +- lib/index.js | 16 ++-- lib/nodes/AtWord.js | 7 +- lib/nodes/Comment.js | 90 +++++++++++---------- lib/nodes/Container.js | 21 +++++ lib/nodes/Func.js | 4 +- lib/nodes/Interpolation.js | 4 +- lib/nodes/Node.js | 21 +++++ lib/nodes/Numeric.js | 3 +- lib/nodes/Operator.js | 4 +- lib/nodes/Punctuation.js | 4 +- lib/nodes/Quoted.js | 4 +- lib/nodes/UnicodeRange.js | 4 +- lib/nodes/Word.js | 3 +- test/atword.test.js | 2 + test/comment.test.js | 2 + test/fixtures/interpolation.js | 3 +- test/func.test.js | 2 + test/interpolation.test.js | 10 ++- test/numeric.test.js | 2 + test/operator.test.js | 2 + test/punctuation.test.js | 2 + test/snapshots/atword.test.js.md | 6 +- test/snapshots/atword.test.js.snap | Bin 445 -> 449 bytes test/snapshots/comment.test.js.md | 38 +++++++-- test/snapshots/comment.test.js.snap | Bin 2174 -> 2215 bytes test/snapshots/func.test.js.md | 82 ++++++++++++++++++- test/snapshots/func.test.js.snap | Bin 9990 -> 10105 bytes test/snapshots/interpolation.test.js.md | 12 +++ test/snapshots/interpolation.test.js.snap | Bin 1569 -> 1582 bytes test/snapshots/numeric.test.js.md | 92 +++++++++++++++++++++- test/snapshots/numeric.test.js.snap | Bin 3028 -> 3120 bytes test/snapshots/operator.test.js.md | 18 ++++- test/snapshots/operator.test.js.snap | Bin 1140 -> 1157 bytes test/snapshots/punctuation.test.js.md | 42 +++++++++- test/snapshots/punctuation.test.js.snap | Bin 2784 -> 2824 bytes test/snapshots/unicode-range.test.js.md | 22 +++++- test/snapshots/unicode-range.test.js.snap | Bin 1202 -> 1224 bytes test/snapshots/variable.test.js.md | 16 ++++ test/snapshots/variable.test.js.snap | Bin 863 -> 889 bytes test/snapshots/word.test.js.md | 48 ++++++++++- test/snapshots/word.test.js.snap | Bin 4549 -> 4623 bytes test/unicode-range.test.js | 2 + test/variable.test.js | 2 + test/word.test.js | 2 + 46 files changed, 513 insertions(+), 87 deletions(-) create mode 100644 lib/nodes/Container.js create mode 100644 lib/nodes/Node.js diff --git a/lib/ValuesParser.js b/lib/ValuesParser.js index b7a036c..f7e3bb9 100644 --- a/lib/ValuesParser.js +++ b/lib/ValuesParser.js @@ -52,6 +52,7 @@ module.exports = class ValuesParser extends Parser { const inline = Comment.testInline(token); const node = this.lastNode; node.inline = inline; + Object.setPrototypeOf(node, Comment.prototype); } fromFirst(tokens, Constructor) { diff --git a/lib/ValuesStringifier.js b/lib/ValuesStringifier.js index 06b4c77..2728d04 100644 --- a/lib/ValuesStringifier.js +++ b/lib/ValuesStringifier.js @@ -1,6 +1,11 @@ const Stringifier = require('postcss/lib/stringifier'); -module.exports = class LessStringifier extends Stringifier { +module.exports = class ValuesStringifier extends Stringifier { + static stringify(node, builder) { + const stringifier = new ValuesStringifier(builder); + stringifier.stringify(node); + } + basic(node, value) { const print = value || node.value; const after = node.raws.after ? this.raw(node, 'after') || '' : ''; diff --git a/lib/index.js b/lib/index.js index 6f74a68..c8cf4ac 100644 --- a/lib/index.js +++ b/lib/index.js @@ -11,7 +11,7 @@ const Input = require('postcss/lib/input'); const Parser = require('./ValuesParser'); -const Stringifier = require('./ValuesStringifier'); +const { stringify } = require('./ValuesStringifier'); module.exports = { parse(css, options) { @@ -20,13 +20,19 @@ module.exports = { parser.parse(); + const { root } = parser; + const ogToString = root.toString; + + function toString(stringifier) { + return ogToString.bind(root)(stringifier || module.exports.stringify); + } + + root.toString = toString.bind(root); + return parser.root; }, - stringify(node, builder) { - const stringifier = new Stringifier(builder); - stringifier.stringify(node); - }, + stringify, nodeToString(node) { let result = ''; diff --git a/lib/nodes/AtWord.js b/lib/nodes/AtWord.js index e3ef52f..4f9ee18 100644 --- a/lib/nodes/AtWord.js +++ b/lib/nodes/AtWord.js @@ -12,10 +12,11 @@ const AtRule = require('postcss/lib/node'); const { registerWalker } = require('../walker'); +const { stringify } = require('../ValuesStringifier'); + class AtWord extends AtRule { - constructor(options) { - super(options); - this.type = 'atword'; + toString(stringifier = stringify) { + return super.toString(stringifier); } } diff --git a/lib/nodes/Comment.js b/lib/nodes/Comment.js index b99f319..2a9b52e 100644 --- a/lib/nodes/Comment.js +++ b/lib/nodes/Comment.js @@ -8,61 +8,71 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Comment = require('postcss/lib/comment'); +const PostCssComment = require('postcss/lib/comment'); + +const { stringify } = require('../ValuesStringifier'); const inlineRegex = /(\/\/)/; -Comment.testInline = (token) => inlineRegex.test(token[1]); +class Comment extends PostCssComment { + static testInline(token) { + return inlineRegex.test(token[1]); + } -Comment.tokenizeNext = (tokens, parser) => { - const [first] = tokens; - const newlineIndex = tokens.findIndex((t) => /\n/.test(t[1])); - let bits = tokens; - let rest = []; + static tokenizeNext(tokens, parser) { + const [first] = tokens; + const newlineIndex = tokens.findIndex((t) => /\n/.test(t[1])); + let bits = tokens; + let rest = []; - if (newlineIndex >= 0) { - bits = tokens.slice(0, newlineIndex); - rest = tokens.slice(newlineIndex); - } + if (newlineIndex >= 0) { + bits = tokens.slice(0, newlineIndex); + rest = tokens.slice(newlineIndex); + } + + bits = bits.map((t) => t[1]); - bits = bits.map((t) => t[1]); + // see tilde comment in tokenizeInline + const text = bits.concat('~~').join(''); + const last = bits[bits.length - 1]; + const newToken = ['comment', text, first[2], first[3], last[2], last[3]]; - // see tilde comment in tokenizeInline - const text = bits.concat('~~').join(''); - const last = bits[bits.length - 1]; - const newToken = ['comment', text, first[2], first[3], last[2], last[3]]; + parser.back([newToken, ...rest]); + } - parser.back([newToken, ...rest]); -}; + static tokenizeInline(tokens, parser) { + const [first, ...rest] = tokens; + const bits = first[1].split(/(\/\/.+)/).filter((t) => !!t); + const newTokens = []; + const [, , startLine, , endLine] = first; + let [, , , startChar, , endChar] = first; -Comment.tokenizeInline = (tokens, parser) => { - const [first, ...rest] = tokens; - const bits = first[1].split(/(\/\/.+)/).filter((t) => !!t); - const newTokens = []; - const [, , startLine, , endLine] = first; - let [, , , startChar, , endChar] = first; + for (let bit of bits) { + const comment = bit.slice(0, 2) === '//'; + const type = comment ? 'comment' : 'word'; - for (let bit of bits) { - const comment = bit.slice(0, 2) === '//'; - const type = comment ? 'comment' : 'word'; + if (comment) { + // the Parser base comment() method trims the last two characters when creating the node + // these tildes are added to counter that. it's hacky, but it works, and we don't have to + // re-implement the method + bit += '~~'; + } - if (comment) { - // the Parser base comment() method trims the last two characters when creating the node - // these tildes are added to counter that. it's hacky, but it works, and we don't have to - // re-implement the method - bit += '~~'; - } + if (bit !== bits[0]) { + startChar = endChar + 1; + } - if (bit !== bits[0]) { - startChar = endChar + 1; - } + endChar = startChar + bit.length - 1; - endChar = startChar + bit.length - 1; + newTokens.push([type, bit, startLine, startChar, endLine, endChar]); + } - newTokens.push([type, bit, startLine, startChar, endLine, endChar]); + parser.back(newTokens.concat(rest)); } - parser.back(newTokens.concat(rest)); -}; + toString(stringifier = stringify) { + return super.toString(stringifier); + } +} module.exports = Comment; diff --git a/lib/nodes/Container.js b/lib/nodes/Container.js new file mode 100644 index 0000000..5c618ac --- /dev/null +++ b/lib/nodes/Container.js @@ -0,0 +1,21 @@ +/* + Copyright © 2018 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +const PostCssContainer = require('postcss/lib/container'); + +const { stringify } = require('../ValuesStringifier'); + +class Container extends PostCssContainer { + toString(stringifier = stringify) { + return super.toString(stringifier); + } +} + +module.exports = Container; diff --git a/lib/nodes/Func.js b/lib/nodes/Func.js index 945cc87..1989b6f 100644 --- a/lib/nodes/Func.js +++ b/lib/nodes/Func.js @@ -8,10 +8,10 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Container = require('postcss/lib/container'); - const { registerWalker } = require('../walker'); +const Container = require('./Container'); + const colorFunctions = ['hsl', 'hsla', 'rgb', 'rgba']; class Func extends Container { diff --git a/lib/nodes/Interpolation.js b/lib/nodes/Interpolation.js index d65420f..4f81edd 100644 --- a/lib/nodes/Interpolation.js +++ b/lib/nodes/Interpolation.js @@ -8,10 +8,10 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Container = require('postcss/lib/container'); - const { registerWalker } = require('../walker'); +const Container = require('./Container'); + class Interpolation extends Container { constructor(options = {}) { super(options); diff --git a/lib/nodes/Node.js b/lib/nodes/Node.js new file mode 100644 index 0000000..483a458 --- /dev/null +++ b/lib/nodes/Node.js @@ -0,0 +1,21 @@ +/* + Copyright © 2018 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +const PostCssNode = require('postcss/lib/node'); + +const { stringify } = require('../ValuesStringifier'); + +class Node extends PostCssNode { + toString(stringifier = stringify) { + return super.toString(stringifier || {}); + } +} + +module.exports = Node; diff --git a/lib/nodes/Numeric.js b/lib/nodes/Numeric.js index eb02857..ce7c4c0 100644 --- a/lib/nodes/Numeric.js +++ b/lib/nodes/Numeric.js @@ -9,10 +9,11 @@ included in all copies or substantial portions of this Source Code Form. */ const isNumber = require('is-number'); -const Node = require('postcss/lib/node'); const { registerWalker } = require('../walker'); +const Node = require('./Node'); + const unitRegex = /%|ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw$/i; class Numeric extends Node { diff --git a/lib/nodes/Operator.js b/lib/nodes/Operator.js index 456e393..46e9dd4 100644 --- a/lib/nodes/Operator.js +++ b/lib/nodes/Operator.js @@ -8,10 +8,10 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Node = require('postcss/lib/node'); - const { registerWalker } = require('../walker'); +const Node = require('./Node'); + const operators = ['+', '-', '/', '*', '%']; const operRegex = new RegExp(`([/|*}])`); diff --git a/lib/nodes/Punctuation.js b/lib/nodes/Punctuation.js index 20090e1..db4d99d 100644 --- a/lib/nodes/Punctuation.js +++ b/lib/nodes/Punctuation.js @@ -8,11 +8,11 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Node = require('postcss/lib/node'); - const { getTokens } = require('../tokenize'); const { registerWalker } = require('../walker'); +const Node = require('./Node'); + /** * @desc Punctuation nodes can contain: * , : ( ) { } [ ] diff --git a/lib/nodes/Quoted.js b/lib/nodes/Quoted.js index 0b47753..ead39f2 100644 --- a/lib/nodes/Quoted.js +++ b/lib/nodes/Quoted.js @@ -8,10 +8,10 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Node = require('postcss/lib/node'); - const { registerWalker } = require('../walker'); +const Node = require('./Node'); + class Quoted extends Node { constructor(options) { super(options); diff --git a/lib/nodes/UnicodeRange.js b/lib/nodes/UnicodeRange.js index fac5663..e1b273c 100644 --- a/lib/nodes/UnicodeRange.js +++ b/lib/nodes/UnicodeRange.js @@ -8,10 +8,10 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const Node = require('postcss/lib/node'); - const { registerWalker } = require('../walker'); +const Node = require('./Node'); + class UnicodeRange extends Node { constructor(options) { super(options); diff --git a/lib/nodes/Word.js b/lib/nodes/Word.js index 8e8bde5..bdadbda 100644 --- a/lib/nodes/Word.js +++ b/lib/nodes/Word.js @@ -10,10 +10,11 @@ */ const colors = require('color-name'); const isUrl = require('is-url-superb'); -const Node = require('postcss/lib/node'); const { registerWalker } = require('../walker'); +const Node = require('./Node'); + const escapeRegex = /^\\(.+)/; const hexRegex = /^#(.+)/; const colorRegex = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i; diff --git a/test/atword.test.js b/test/atword.test.js index 80939b0..f6d9068 100644 --- a/test/atword.test.js +++ b/test/atword.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/comment.test.js b/test/comment.test.js index 7ea340a..408b088 100644 --- a/test/comment.test.js +++ b/test/comment.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/fixtures/interpolation.js b/test/fixtures/interpolation.js index 278338a..e959108 100644 --- a/test/fixtures/interpolation.js +++ b/test/fixtures/interpolation.js @@ -12,5 +12,6 @@ module.exports = { options: { interpolation: { prefix: '#' } }, - snapshot: ['#{batman}', '#{2px}', '#{2 * 2px}'] + snapshot: ['#{batman}', '#{2px}', '#{2 * 2px}'], + throws: ['#{batman'] }; diff --git a/test/func.test.js b/test/func.test.js index e69682d..75f20ce 100644 --- a/test/func.test.js +++ b/test/func.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/interpolation.test.js b/test/interpolation.test.js index 9254cb2..40388d7 100644 --- a/test/interpolation.test.js +++ b/test/interpolation.test.js @@ -12,7 +12,7 @@ const test = require('ava'); const { nodeToString, parse } = require('../lib'); -const { options, snapshot } = require('./fixtures/interpolation'); +const { options, snapshot, throws } = require('./fixtures/interpolation'); for (const fixture of snapshot) { test(fixture, (t) => { @@ -24,7 +24,15 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); } + +for (const fixture of throws) { + test(fixture, (t) => { + t.throws(() => parse(fixture)); + }); +} diff --git a/test/numeric.test.js b/test/numeric.test.js index 1f9e781..913c202 100644 --- a/test/numeric.test.js +++ b/test/numeric.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/operator.test.js b/test/operator.test.js index f715cb1..102d989 100644 --- a/test/operator.test.js +++ b/test/operator.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/punctuation.test.js b/test/punctuation.test.js index 46b7eab..7066471 100644 --- a/test/punctuation.test.js +++ b/test/punctuation.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/snapshots/atword.test.js.md b/test/snapshots/atword.test.js.md index 64bd4ef..e5c8980 100644 --- a/test/snapshots/atword.test.js.md +++ b/test/snapshots/atword.test.js.md @@ -8,10 +8,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - ' @word ' + '@word ' > Snapshot 2 + ' @word ' + +> Snapshot 3 + [ AtWord { name: 'word', diff --git a/test/snapshots/atword.test.js.snap b/test/snapshots/atword.test.js.snap index 0a67966e261c2e6d38bc15e4fc3d4d1c0dd4c686..10ac237fa0668313749197df9ddbc9071a611c50 100644 GIT binary patch literal 449 zcmV;y0Y3ggRzV9yId|x%mwoUwi84|tt^5Vtt>Qxg;>evvcX8c*xL|N+liH>g@~=SVsB$1 zDXgsp!G9ovbDP_IYzhw^H}iI8=e^xsBZL46c7Ly44v&KSr^oA`kJ}}O#9tx7a)J${ z9g@~-kRo~TwtH<^WmBBbn8o@)SK@BOB6xX7m89f-02AeMIRbM8fWSOJ(KLAx{`-g< z#4}=m_%xe%C3TEbfMQs#oQqHeK|mlIi+~)~&;mG^qYIZ423;R^*f_s9#_M0KDZ&a))AM82QVgv%E6g7;e+#rCGUtY zyVRZW>sS&pyrzUa7@H=x--@WU=GC43ki0U&SbbJP>daKh_nqHlx zBgLiCwoi~gMO+~6sCfW;ahsMh?fMlf28eHJx%U2b?SzrJ!SNHcji2#or@XII8d!_8 rUNvF1sC_ZqlC5tU@6%g_?MAmbJRx^RjN7QUM6w2dLBUMgVgmpG*;LZP literal 445 zcmV;u0Yd&kRzV}?3C?ZnE`Ld4cuvA401 z6xP;);6D(-$tHVAHiZX|oq0R6^WNUB004r&`+N0rc;w$dJzoEO+%7Zde~UvbIRFkM zHHQhvVJZl=J55;*Vm5_rmDUZyJbF1y6r|)`L=$DRS-=@U1e`_8n;W)*lXE_po~rZjsFF^vFm zkK~<5vzueA7d6{56!tLHZNkpZ#;sKwVz`HYlhE!QMgsr<^lHhW diff --git a/test/snapshots/comment.test.js.md b/test/snapshots/comment.test.js.md index 007cb82..1d77c3e 100644 --- a/test/snapshots/comment.test.js.md +++ b/test/snapshots/comment.test.js.md @@ -12,6 +12,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '/**/' + +> Snapshot 3 + [ Comment { inline: false, @@ -46,11 +50,15 @@ Generated by [AVA](https://ava.li). > Snapshot 1 + '/*before*/' + +> Snapshot 2 + `/*before*/␊ //between␊ /*after*/` -> Snapshot 2 +> Snapshot 3 [ Comment { @@ -142,10 +150,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '/*before*/ 1px /*between*/ 1px /*after*/' + '/*before*/' > Snapshot 2 + '/*before*/ 1px /*between*/ 1px /*after*/' + +> Snapshot 3 + [ Comment { inline: false, @@ -280,6 +292,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '//' + +> Snapshot 3 + [ Comment { inline: true, @@ -313,10 +329,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 + '//' + +> Snapshot 2 + `//␊ ` -> Snapshot 2 +> Snapshot 3 [ Comment { @@ -354,12 +374,16 @@ Generated by [AVA](https://ava.li). > Snapshot 1 + '//before' + +> Snapshot 2 + `//before␊ 1px //between␊ 1px //after␊ ` -> Snapshot 2 +> Snapshot 3 [ Comment { @@ -510,11 +534,15 @@ Generated by [AVA](https://ava.li). > Snapshot 1 + '//before' + +> Snapshot 2 + `//before␊ /*between*/␊ //after` -> Snapshot 2 +> Snapshot 3 [ Comment { diff --git a/test/snapshots/comment.test.js.snap b/test/snapshots/comment.test.js.snap index 781488429509b9f66ceddb87b51ea793de0e5bf1..502064aebfcfd63bd54d5109d528445536034982 100644 GIT binary patch literal 2215 zcmV;Y2w3+)RzVbtqlk+Bdwbip=brZ5u4SFE3%~T)U z2|X3~6BLp!SRMUqTvO`3uKtdwc6&>E;lSyQg@IlFESJj@-mjkGcX=bCEP|;5pCiEa zU>v9cb>ITQlrJd5z255Cf)LuW*=$6x2CgP#3qoV?B-mOP_!QL5V}VUk-7Lg^upp_M z;{%(rdcmdGTn09PU7#7rqIN;^$ojfEm&Y%N`GTpk=5CkMpO=@X#@V5{3|s@Mz+A8@ z9Cu?woy+TX3Km`57HB>M&ER)n!w4&t=JO92k?Q#;4ScpL|?C?F7792egSzh zAs2%oV3JHm#W?WuKpT^4IXzmJ#l&? zby%5MUE2^ohcM7+Z&fI)l&2X;Iik1B+7wE#yH+r-{ZV`Fu3woc_c0~ZU5a{#G1gfY zLB1Jh9}i}NCr#QM(dLC9(Njx)3zCgsH)y8iGA)5qK5spyeHO^23lE2j@U%3njPd@*V(538HyK&-4br+Wc;0v(I1c4Ng#zzLq*`h~zonhtKC!3jPakf5B%;HSvYWrfv+QQzfS!4oHWOGPcokF%S7XQra9i8WW4@H z8xbG%U@ANMQ;(|AEfzr>fX@=%V`uOQvm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cU87)?tUlEnvT#G1c zs)$MzQK=&8+AN}80js!0)DKV`0Dtp~s9e-5UBCdNMbuab9|n){i>M`#EC(Bm7EwPy zcmVtzZxI#WAE%=3$q6W-Zf%OcNoB-Y0!1rfjKoKK<=99Gl@=}jKQ`DtMnF3N0ATYi AT>t<8 diff --git a/test/snapshots/func.test.js.md b/test/snapshots/func.test.js.md index d0d5c88..28d0fda 100644 --- a/test/snapshots/func.test.js.md +++ b/test/snapshots/func.test.js.md @@ -12,6 +12,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-webkit-linear-gradient(0)' + +> Snapshot 3 + [ Func { isColor: false, @@ -76,6 +80,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'RGBA( 29, 439 , 29 )' + +> Snapshot 3 + [ Func { isColor: true, @@ -238,6 +246,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'RgBa( 29, 439 , 29 )' + +> Snapshot 3 + [ Func { isColor: true, @@ -400,6 +412,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'bar(baz(black, 10%), 10%)' + +> Snapshot 3 + [ Func { isColor: false, @@ -594,6 +610,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'calc(((768px - 100vw) / 2) - 15px)' + +> Snapshot 3 + [ Func { isColor: false, @@ -901,6 +921,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'calc(-0.5 * var(foo))' + +> Snapshot 3 + [ Func { isColor: false, @@ -1046,6 +1070,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'calc(1px + -2vw - 4px)' + +> Snapshot 3 + [ Func { isColor: false, @@ -1208,6 +1236,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'rgba( 29, 439 , 29 )' + +> Snapshot 3 + [ Func { isColor: true, @@ -1370,6 +1402,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url( "/gfx/img/bg.jpg" )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1434,6 +1470,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url( "http://domain.com/gfx/img/bg.jpg" )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1498,6 +1538,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url( \'/gfx/img/bg.jpg\' )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1562,6 +1606,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url( \'http://domain.com/gfx/img/bg.jpg\' )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1626,6 +1674,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url( /gfx/img/bg.jpg )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1821,6 +1873,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url("/gfx/img/bg.jpg" hello )' + +> Snapshot 3 + [ Func { isColor: false, @@ -1913,6 +1969,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url("http://domain.com/gfx/img/bg.jpg" hello )' + +> Snapshot 3 + [ Func { isColor: false, @@ -2005,6 +2065,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url()' + +> Snapshot 3 + [ Func { isColor: false, @@ -2038,10 +2102,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - 'url() foo bar baz' + 'url()' > Snapshot 2 + 'url() foo bar baz' + +> Snapshot 3 + [ Func { isColor: false, @@ -2160,6 +2228,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url(//123.example.com)' + +> Snapshot 3 + [ Func { isColor: false, @@ -2227,6 +2299,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url(http://123.example.com)' + +> Snapshot 3 + [ Func { isColor: false, @@ -2346,6 +2422,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'url(var(foo))' + +> Snapshot 3 + [ Func { isColor: false, diff --git a/test/snapshots/func.test.js.snap b/test/snapshots/func.test.js.snap index ba5e040235819c086169e63c74af2c0e3d240ab6..a715830d23e298e750b2f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&ROwUsq9%vB(-S&Y&rGzcf=ic> z3q#&RMTpL*s46NoXg!#PKjtSYBx(Z3K|OQlQi`J4~m;-A)gfd#%&<~W?bZJO7g zG~OumVqe4!S97(oH`=lbd`RKr;h-2`wNYB9Il`i6Jn#LS%fKHby@oyb5fUom%J1bW zq>WsVX-ovj{?5$0UU^$CZjl|ypb*NRUlJjYLM2jyE`pw`P5Zg<@v4`b>*_eGZS0e; z_#eTrRxmguuJGJBGmRnPV4)pC-y7#)Az|2C4{|BUxkC*@e diff --git a/test/snapshots/interpolation.test.js.md b/test/snapshots/interpolation.test.js.md index 47e77a1..b5bb0cb 100644 --- a/test/snapshots/interpolation.test.js.md +++ b/test/snapshots/interpolation.test.js.md @@ -12,6 +12,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '#{2 * 2px}' + +> Snapshot 3 + [ Interpolation { nodes: [ @@ -124,6 +128,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '#{2px}' + +> Snapshot 3 + [ Interpolation { nodes: [ @@ -187,6 +195,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '#{batman}' + +> Snapshot 3 + [ Interpolation { nodes: [ diff --git a/test/snapshots/interpolation.test.js.snap b/test/snapshots/interpolation.test.js.snap index dd973d41c52e2da12607987bec46222081788beb..2c88906941c574422d8d4271a922de5e28479311 100644 GIT binary patch literal 1582 zcmV+}2GRLJRzV3#LNwmh~aPBIyPOb`rn100V`i406&0>Q;ZBX`>!yVAAIZM#PRACW&K zBpAsUM2S&+B)$?8HAIwv%vV4o(+oBIK>*`e0ACS<#Gv2a-In&;v)+|`Uzy1~lTT!h`@Qeh#)IwUviIeM z<-cz2pTirYLnb380YAshdj6>$r5meN za1{iIxsY#FIIil^NJxomkuY%tiPY5cnA#c-1OgoKaYW)s2_f~+Pa{0y!xO`iHZ{f( zKUQ$02BoN?E1j{_S7+)CEHYhf*LqT4NtLnsqZz9Uy3!ppMt5b5O0h^nZ&j()gm`aM zO?~lcnQvmG>@Z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SIVPOi*VI-^66yA<`Euw#=M& zp*aA)qbG2w<XBKg&X;pa)fqOQ^w{~#PAi?7C7(^qdw!*h@L1w+hh!Ic3w%t=y;;Dt$pS}!Fn$r5`FgiRn$Z Snapshot 2 + '+2' + +> Snapshot 3 + [ Numeric { raws: { @@ -47,6 +51,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-.567800E-0012780em' + +> Snapshot 3 + [ Numeric { raws: { @@ -82,6 +90,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-0.5' + +> Snapshot 3 + [ Numeric { raws: { @@ -117,6 +129,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-16px' + +> Snapshot 3 + [ Numeric { raws: { @@ -148,10 +164,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '-16px -1px -1px -16px' + '-16px' > Snapshot 2 + '-16px -1px -1px -16px' + +> Snapshot 3 + [ Numeric { raws: { @@ -259,6 +279,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-2' + +> Snapshot 3 + [ Numeric { raws: { @@ -294,6 +318,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-2px' + +> Snapshot 3 + [ Numeric { raws: { @@ -329,6 +357,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '.1E+10' + +> Snapshot 3 + [ Numeric { raws: { @@ -364,6 +396,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '.1E-10' + +> Snapshot 3 + [ Numeric { raws: { @@ -399,6 +435,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '.23rem' + +> Snapshot 3 + [ Numeric { raws: { @@ -434,6 +474,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '0.5' + +> Snapshot 3 + [ Numeric { raws: { @@ -469,6 +513,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1E+10' + +> Snapshot 3 + [ Numeric { raws: { @@ -504,6 +552,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1E-10' + +> Snapshot 3 + [ Numeric { raws: { @@ -539,6 +591,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1E10' + +> Snapshot 3 + [ Numeric { raws: { @@ -574,6 +630,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1e+10' + +> Snapshot 3 + [ Numeric { raws: { @@ -609,6 +669,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1e-10' + +> Snapshot 3 + [ Numeric { raws: { @@ -644,6 +708,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '1e10' + +> Snapshot 3 + [ Numeric { raws: { @@ -679,6 +747,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '2.' + +> Snapshot 3 + [ Numeric { raws: { @@ -710,10 +782,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '5 + 5' + '5' > Snapshot 2 + '5 + 5' + +> Snapshot 3 + [ Numeric { raws: { @@ -792,10 +868,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '5 +5' + '5' > Snapshot 2 + '5 +5' + +> Snapshot 3 + [ Numeric { raws: { @@ -851,10 +931,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '5/5' + '5' > Snapshot 2 + '5/5' + +> Snapshot 3 + [ Numeric { raws: { diff --git a/test/snapshots/numeric.test.js.snap b/test/snapshots/numeric.test.js.snap index 79b6f89d985f90c25d9002a80736db1fdb91010c..0f0136b196177722937200596d71f730748622da 100644 GIT binary patch literal 3120 zcmV-04A1jHRzVw0R%)q0#=SLxfV7A2w2gzfD%pv$OqaG77~F3HycPmph7uBKCOV< zMMMxef)$X%202uYex&7waMhMprR4?<0v7svZ)Za?Z?Z3RUv}HDe*Ch#|NYN<|DE@K zGxMLBmjaQH81hw%yT4g|q4_V~OWd<-Q=5Wx81Y{nN(;(Nn2$z%nLJ_9(_8NLf1&=& zgp;jA*}8;ML@}8NDNgAXm$|{&c=hnY^fB88-4|tReTtbfBZQDn)^tnM?Ri%U-_5%- zBfjwoQMN9mtfmMNgrw})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xg>^HL@l9^zIvL3g=r4m$0 zw=%d#k9S#m?9JBWb8J1%g?SMuSJvaFa5*e#v7JUqk3*!JE7ClxN7iYthB}?UN0<5o zvJXSu=dOF^n$L(*UwH4ClS|NX&)j)%OED!rG=D!e;CMUjP7#@Z(qj diff --git a/test/snapshots/operator.test.js.md b/test/snapshots/operator.test.js.md index 470aeee..7590e21 100644 --- a/test/snapshots/operator.test.js.md +++ b/test/snapshots/operator.test.js.md @@ -8,10 +8,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '10 % modulo' + '10' > Snapshot 2 + '10 % modulo' + +> Snapshot 3 + [ Numeric { raws: { @@ -93,10 +97,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '2 * 10' + '2' > Snapshot 2 + '2 * 10' + +> Snapshot 3 + [ Numeric { raws: { @@ -175,10 +183,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '2 / 10' + '2' > Snapshot 2 + '2 / 10' + +> Snapshot 3 + [ Numeric { raws: { diff --git a/test/snapshots/operator.test.js.snap b/test/snapshots/operator.test.js.snap index 467770ac04e3b1daff3923c58fdf48f2a3c94143..4ba6574cc26bd4fac1b5cc330d4df7bbe9c4b1fc 100644 GIT binary patch literal 1157 zcmV;01bX{HRzVS^BNN*4UGeP0;TLc2z9xF3JA8V5o>}GQ4|(~hOyZQb zm35W2#KuHxOL0u4(kA>q1$KaLu!1UaDnDyk+9;)kRx}zVw1H5O&@iR@^TB8xaet}T zJnuFIcS+@6G-XQ2YS0e$0-O3vhq`h@x@DxOfO5K%ujwf#7K^!Y@)2mh0H?qN_^lA5 zc4u`Y>?6*5E29H!8VWt?+9$NNO@euy&bfX(r=(#>0Xu`r;?=&+urEKl2OGr zb5=?xG>RpKqShJB>V-}ylh49xav8(%JA|2&-_+8%;sUhID@pQ_|IICFtvIieRMWp> zv*+Ddaw~d7Ufx6V%lp8$LTGJqw^cleyr;os(cemc`>4o10n#6k+y<&d$Qp@}ORQYn z3`r;0$4Zw4Rvv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_FMW;#j%}MhCkL| z*t;~#&{7$_B*2Yb;NI@|%x+g2#4b;Ht4iS=@IIOg;T)ELS6BxTbUoXB3zG$(Rd+on zAsGRq)m_hR-@^O@;;c6bx}H^#G=nXyH0XK`Lh>Fs48EB&*Yg9U_*E0ge88BAe_1uNzK2TVr zQOWhZ2;nO5CL0iRJt;`~!Qtt;o)HMofU)^?J>`e%ELflRxv)OcJjW}wjQ Snapshot 1 - '(1,2)' + '(' > Snapshot 2 + '(1,2)' + +> Snapshot 3 + [ Punctuation { raws: { @@ -140,6 +144,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + ')' + +> Snapshot 3 + [ Punctuation { raws: { @@ -174,6 +182,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + ',' + +> Snapshot 3 + [ Punctuation { raws: { @@ -204,10 +216,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - ', : ( ) { } [ ]' + ',' > Snapshot 2 + ', : ( ) { } [ ]' + +> Snapshot 3 + [ Punctuation { raws: { @@ -399,10 +415,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '5,6,7,8' + '5' > Snapshot 2 + '5,6,7,8' + +> Snapshot 3 + [ Numeric { raws: { @@ -579,6 +599,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + ':' + +> Snapshot 3 + [ Punctuation { raws: { @@ -613,6 +637,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + ']' + +> Snapshot 3 + [ Punctuation { raws: { @@ -647,6 +675,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '{' + +> Snapshot 3 + [ Punctuation { raws: { @@ -681,6 +713,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '}' + +> Snapshot 3 + [ Punctuation { raws: { diff --git a/test/snapshots/punctuation.test.js.snap b/test/snapshots/punctuation.test.js.snap index c85e0dea313a840fd1b4a4789535eccca2ae96e3..13c830bb3aa5150bc94c274537e14a7a88dd306e 100644 GIT binary patch literal 2824 zcmbV~X&@7h|H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o#K1x_>DdX_2Y@~3FQ8?q!i4*PhsGE*N+m(iR85u9 z|IvZ?ghL&D<5|eMC-fZUpK~mC6P29NSS8{;=k|>xL0Q ZQNPX`WNebnTO1Bz2WoWRi*#{ diff --git a/test/snapshots/unicode-range.test.js.md b/test/snapshots/unicode-range.test.js.md index 0e3f645..300d794 100644 --- a/test/snapshots/unicode-range.test.js.md +++ b/test/snapshots/unicode-range.test.js.md @@ -12,6 +12,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'U+0-7F' + +> Snapshot 3 + [ UnicodeRange { raws: { @@ -46,6 +50,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'U+0025-00FF' + +> Snapshot 3 + [ UnicodeRange { raws: { @@ -76,10 +84,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - 'U+0025-00FF, U+4??' + 'U+0025-00FF' > Snapshot 2 + 'U+0025-00FF, U+4??' + +> Snapshot 3 + [ UnicodeRange { raws: { @@ -160,6 +172,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'U+26' + +> Snapshot 3 + [ UnicodeRange { raws: { @@ -194,6 +210,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'U+4??' + +> Snapshot 3 + [ UnicodeRange { raws: { diff --git a/test/snapshots/unicode-range.test.js.snap b/test/snapshots/unicode-range.test.js.snap index 1e4326f2255a723397b3e273399b16a6f26b7739..73ea8ed4682d413b39675ab6e8d0a57a13489710 100644 GIT binary patch literal 1224 zcmV;(1ULIZRzVjnm!1uGZZ;yCZEh!3&p& zL`xbZCg=kiwcdSD-ax7`Mtv}*56FW>n>2(3sE?-J8|Fns)8! zg3^rcw3xE^Ss`TQ!nXUK+1Ggd-qp&X*_{_AMHcbg2XY4$D<2oUNfloINpbX~TSY~cDdH~^->kJ$v?NFp9h z#b1(FVqv8XRC)!HgWx@I!Y-GJ zCMMV`P`9Tw-FhOnMrByrp47EmD-ww89h}U22cnjUv7jjAf^s}DW~5oTGe4Y4t9qKv za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Lt;5MM$?RD^;Ib$gn%Hqm^ml1`aMTq87uafMtqGd`we4+3Vv zRF0thj5=!OlI)tTy2Z_y;vw)fwd=LZqhfKT^;CKlk%Qn}aM~G{To)!dD^Ry)G{Zh3 zj+4r;wl!sF`Lh^6WcT2wf_orpdV)2ILcUQ>>SJbxHFp&@r!%UNVb{0?&BNdY!BMpA zy2c}j90k*0CL5RUwPq;jXs5+GytP5lCOQVL^Sm2MJT+==)7hb9y-mfBbu_7K`E&C( zqbMQ9(`m=kEFOPEO|R>}pB)Ne$4McX$nFMLv)k8<;hMYFlv-+$SW2v|v*XSUwN~p- zu39aXQp>(-_I?atl7~UsTdo6$90KoyFRCWjS)N=nU#@PxTtjG1fSulQy@ALv@D-T# zl*O}uU>u>)*0>X=}JqcThWRiYRR^Bm)ABq z*4DFjZLK}K%=N6fQl8CUG+Ef$6Fl_A}2giEmhxZ`k8#wk&(m z+pyOWu`K%%{NicYBA68d9kn$q`#4K>tEaqfEiN#>z1b<6)PwC^U_I#f5>8~oJv!eR zdz037-okIKU4dyR;brjw%bZm}rPrb%I_^WzdcWTSC&65{qkq8E;~7)UBvU%AclERW zrt*Up&}aWU!kI9574LToJnxSSRaswiRm^a!@QK$|g?}u6qZTZJwiis@C-SCFT;J6H z>%%vRISzwQo$k6nd}k0j3w{TRwD5-yBQHf{8MxaSUE~^h2$2LB2NTY?&o%PfhKlcR?+U z3a6Ge3b&T^3U>)hq1gnJisusc5h9;}Szvu_7hb}aBe4=}s#|yoLv#cY9qe~T{l!uI zDy+jh2!05@b9M;0#y*e8MG&ZWM8j7ZdpUwD!6s*iNL80!&JtIKb-1_Wb@&?k2Ws5E Qp_2Xo1EMcwEV>o|00fgrga7~l diff --git a/test/snapshots/variable.test.js.md b/test/snapshots/variable.test.js.md index f7361c3..8f0848f 100644 --- a/test/snapshots/variable.test.js.md +++ b/test/snapshots/variable.test.js.md @@ -12,6 +12,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '$batman' + +> Snapshot 3 + [ Word { isColor: false, @@ -50,6 +54,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '$main-bg-color' + +> Snapshot 3 + [ Word { isColor: false, @@ -88,6 +96,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '--batman' + +> Snapshot 3 + [ Word { isColor: false, @@ -126,6 +138,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '--main-bg-color' + +> Snapshot 3 + [ Word { isColor: false, diff --git a/test/snapshots/variable.test.js.snap b/test/snapshots/variable.test.js.snap index 2f37720e4560b23ea6b66ad2ac931b13d39ef36a..022e8ab8640cd61fe724fef72f502b936db78c85 100644 GIT binary patch literal 889 zcmV-<1BU!TRzV#oi0Y992Gb?DC} zN=!QFEiyV3L>{7!MNtv75u}$o1Vw~h(jfZIIP31tKAB(_J-F~;XMXQDZ{GX8_x--P zPY4mntBJ3v+p|Ko>skMr(7Ja!d7}R+P3lah5gs^jWn{7@*f=$@`sL_oLy|Y5qA*9D z32_s0V&>^kY;V=fx$?iMLls*iyb)bxvf1QEDIr7S4UYZ8JLt8V?z2B{4(;KMsAt6- z8%=(Tgz&^=jEp*nkGcbakd)|>Vm47X<@C|lg9_^OQAd-iN_~{3uS8KK)I%sGw3O0d z`k|73{9gcL;0gE$W`UOyvI(?OvqRx%T#Zo9N1g4VPC1w9z{DMsfrYe%5w>rO*y4;j4qubs8X+HL`Sls zPA#5P!?LA2A<@?@&)@W7X4bLvNYUhc#(cT;lJPIl{TuK-T^h3@l+P`Wn+hHdl>{3= zkh7!rN(&@V)G? zmXOqhF~<)GPl7+zK|Av1ScN@b1De1oKE3@~^*3ZaXlC=5kZ~2<Is-*HCLn%mphn~+l?>C3X9QNmhuS-Wjlp~KD5 zwipO>NlGjbIvoh>Li)eP<*EN3rvAr@t$%CPjh*}!Z%Kh)_BP;yimE^zXjwEHIL@+x zi)JPG1-_KV4I9v58gg=2<`@_Ey`mF}L z!AV=y4opEl=$ync5#Mw)QPWH+Hf9?f)K3+gpJC z?OzGDfaXQBfMYBR7-U<(1GWX|-~OKgwLkdvZ~yh64RqRCz;$E{gGWni0eS0MuoG-A P*a`jtsd0iqrVs!CDS^2H literal 863 zcmV-l1EBmtRzVWt9j5%)}eog zFfr+%mx%0C5P68AQ_)|7HUjlf9fCSUoivEPGtT~-eKCh!^iT^QcIWqg`{uph`+b$M~cLKJ|CeKn1fI+GPqTg$J+eVBkOHyOx4V5 z&Sx8S$@(7Y%wNY2XfgI!nXDfaHCYVDq@@Jxrjk+>t4pN_nmC}F(TS|6TUQfWM6yjM z#0UGN^u+*nW?xIc7)zux(&aWv#y`XKufexeX{?G+KDRg}R47BY_`n7b;%wd+a~rnR>K`pV~JkHycCQ^&OOqY ztVo%$rDEh{@DW{SoM`SnPKtVKX9v3pIXRm8SrIZzSdS^|x9li%xjAlogTY==R)XOZ z!H6N!KdyK`Q}L-{D{im4*{pAHmn8VGKGG2Ao~U zeACw=B>*}>%+d5wWK4huD{FfG!4@ohV{wJ|1pYtE(Vq%a^y|eIJymV9N1tN$SKzC& z;H7ZH3j&~d*#zIu5`2g)_%vJaB*L>`(fLtc4OMHwPH@ao@DXHO0Jm0F@XUc0EOt|I z#jXtee~@SVPB8tREVkdaqMMy+ysf_jKb$o;-qx$ZCeXTUnjdCqKEl@gE?aZsZT%CV p&d+h Snapshot 1 - ' \\"word\\" \\s ' + '\\"' > Snapshot 2 + ' \\"word\\" \\s ' + +> Snapshot 3 + [ Word { isColor: false, @@ -127,10 +131,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '#123 #f09f #abcdef #a2b3c4d5' + '#123' > Snapshot 2 + '#123 #f09f #abcdef #a2b3c4d5' + +> Snapshot 3 + [ Word { isColor: true, @@ -250,6 +258,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '#fff' + +> Snapshot 3 + [ Word { isColor: true, @@ -284,10 +296,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - '(min-width: 700px) and (orientation: \\$landscape)' + '(' > Snapshot 2 + '(min-width: 700px) and (orientation: \\$landscape)' + +> Snapshot 3 + [ Punctuation { raws: { @@ -596,6 +612,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '--color' + +> Snapshot 3 + [ Word { isColor: false, @@ -634,6 +654,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + '-webkit-transition' + +> Snapshot 3 + [ Word { isColor: false, @@ -672,6 +696,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'BLANCHEDALMOND' + +> Snapshot 3 + [ Word { isColor: true, @@ -710,6 +738,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'blAncHedaLmoNd' + +> Snapshot 3 + [ Word { isColor: true, @@ -748,6 +780,10 @@ Generated by [AVA](https://ava.li). > Snapshot 2 + 'blanchedalmond' + +> Snapshot 3 + [ Word { isColor: true, @@ -782,10 +818,14 @@ Generated by [AVA](https://ava.li). > Snapshot 1 - 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif' + 'bold' > Snapshot 2 + 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif' + +> Snapshot 3 + [ Word { isColor: false, diff --git a/test/snapshots/word.test.js.snap b/test/snapshots/word.test.js.snap index 18e03c196206521c0112d1136de6f0d207dd1d7b..facc8a4669697813e96e119bbb20af36b648fe27 100644 GIT binary patch literal 4623 zcmZwJcQ_kd+W>G961AxCD)dd`);>p^(8Dp|!pQoNh>vhHGi^UZZWdDUyq`NCBvy^J zM6|RFDEY_As*f$_y;MTWh_$Ip4rRa8-2=r{E!0UZjyxDzDD%EAEj*d)QGdMu(jiz{ zD`O=y3F!~B`EGHBZq3$x6ttFkC6_Mev6^WWZIZQ2J=bH`@0UcNwA?dsoxWT-tnew8 zTeOPGc2>H5voEktX@C85rlaDIl}}v>F#avWy0^1~Bj!q0x@(PC2^}|dlgHoT&a2ss zt>J*+1~cTtw~KZ;*@hl+zxMJ9=@e=gAiPh=1uZR1+s+gwjQki+=XxycD9hlVG?}sOe@z6*+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%xu=tZWPm zWo4tID+>_{=O^#fot;0dD=Ps{Hj%lxW?>HE_e`V8!OtO5&oM2JEMvWy^egc525=vE z7Q6$#2MKso833m6Z9S$aH#>?Kub6h8H9NYKmw9&N?d=we2}(Z%PV$mdBt0J0;z1@D zqiTDKB;W0CriyXPS)pRyavoGMZ#lwq<}vU+88m&%>4qoCp5Rsr zJ&cOp0bffG_auy#G>`|*@3i55C2P3Xu!sBO?BV_)4u1kPFdml)ISHjK#PRZeZ z7Zk#)V)rOJ+?n5Phe!Shc}IRkMrmp3&wZ@Nw=vckpS5?aFJO-K^>UAOv8%-sbRUX- z1^i2TbZap{Vn81-s?$dIG}h=|#va|<*rWR}4!;Awk-nLC#W+m`qroMTqx(82gd2LT zvZLGcZFYD(kCb;j_sqy2GSrY!I(T%cA;V}gTdcy*A*P|`VV2>)u)T;YATWZJU?X?} z{1bczw4OUcn|l!#LNFcJJ@Y@|-Qh2T_rMv@O=>S<3*2LS8ya!GLJ-I7DZ%ugL(mzppYr+hP4O|D-NpDR&1j$bD zy7bn>DM-$MC>^F4(pwXwAQ=y?klvbD4#^)p{~N&eux?HGPh4JPZA_eEZ%p(G^CEl^ zYZ2bX-Vj(C=2+@jvAoWXEh+%byRW$oR(hfNWg<#H!u*K*J+C#m$Mc-Rv4i?vJAAbrE$^~N+<6yGD4tj}dD4W7E}m9A z>G#pzDWg5G(|;fB9UbkrLvbf~LgCR)ey{)6Xpi%MiRoaOhr6kKg56w%>(NCE9mT)j j+&k;$?%(OZ5BFcoa3{aljt}>azqI&&3;8)Ze|7)>MHQ!Z diff --git a/test/unicode-range.test.js b/test/unicode-range.test.js index 73dbd49..aea2edd 100644 --- a/test/unicode-range.test.js +++ b/test/unicode-range.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/variable.test.js b/test/variable.test.js index 6307917..7d04c97 100644 --- a/test/variable.test.js +++ b/test/variable.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); }); diff --git a/test/word.test.js b/test/word.test.js index 2aac854..bd24ce4 100644 --- a/test/word.test.js +++ b/test/word.test.js @@ -24,6 +24,8 @@ for (const fixture of snapshot) { const string = nodeToString(root); t.is(string, fixture); + t.is(fixture, root.toString()); + t.snapshot(root.first.toString()); t.snapshot(string); t.snapshot(nodes); });