Skip to content

Commit

Permalink
test upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Feverqwe committed Sep 17, 2024
1 parent 1f533e3 commit 0758b41
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ exports[`Front matter (metadata) transformations do not break when a property ke

exports[`Front matter (metadata) transformations do not break when a property key contains Liquid-style variable substitutions 2`] = `
"---
prop-{{key-name}}: 'This one has a substitution in a key name.'
{{key-name}}-prop: 'This one''s key starts with a substitution.'
{{key-name}}: 'This one''s key only consists of a substitution.'
{{ key-name }}: 'This one''s key employs a different whitespace style in a substitution.'
prop-{{key-name}}: This one has a substitution in a key name.
{{key-name}}-prop: This one's key starts with a substitution.
{{key-name}}: This one's key only consists of a substitution.
{{ key-name }}: This one's key employs a different whitespace style in a substitution.
---
Blah.
"
Expand All @@ -34,24 +34,26 @@ exports[`Front matter (metadata) transformations do not break when a property va

exports[`Front matter (metadata) transformations do not break when a property value contains Liquid-style variable substitutions 2`] = `
"---
prop1: 'This is a metadata property with a {{substitution}} in it.'
prop2: 'This one contains {{multiple}} {{substitutions}}.'
prop3: 'This one has {{substitutions}} of {{ different }} {{ styles}}.'
prop4: 'This one has a {{substitution}} as well, but the string literal is single-quoted.'
prop5: 'This one has no quotes at {{all}}.'
prop6: '{{this}} starts with a substitution.'
prop7: '{{this}} one is a multiline {{property}}.'
prop1: This is a metadata property with a {{substitution}} in it.
prop2: This one contains {{multiple}} {{substitutions}}.
prop3: This one has {{substitutions}} of {{ different }} {{ styles}}.
prop4: >-
This one has a {{substitution}} as well, but the string literal is
single-quoted.
prop5: This one has no quotes at {{all}}.
prop6: {{this}} starts with a substitution.
prop7: {{this}} one is a multiline {{property}}.
---
Blah.
"
`;

exports[`Front matter (metadata) transformations emit valid metadata when a variable is substituted with an ampty string 1`] = `
"---
prop1: ''
prop2: ''
prop3: ''
prop4: ''
prop1:
prop2:
prop3:
prop4:
---
"
`;

0 comments on commit 0758b41

Please sign in to comment.