@@ -134,7 +134,7 @@ Where oh where is my little pony?`,
134
134
` ,
135
135
node => {
136
136
expect ( node ) . toMatchSnapshot ( )
137
- expect ( node . excerpt ) . toMatch ( `Where oh where is my little pony?` )
137
+ expect ( node . excerpt ) . toBe ( `Where oh where is my little pony?` )
138
138
expect ( node . excerptAst ) . toMatchObject ( {
139
139
children : [
140
140
{
@@ -169,7 +169,7 @@ date: "2017-09-18T23:19:51.246Z"
169
169
` ,
170
170
node => {
171
171
expect ( node ) . toMatchSnapshot ( )
172
- expect ( node . excerpt ) . toMatch ( `` )
172
+ expect ( node . excerpt ) . toBe ( `` )
173
173
expect ( node . excerptAst ) . toMatchObject ( {
174
174
children : [ ] ,
175
175
data : { quirksMode : false } ,
@@ -198,7 +198,7 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
198
198
` ,
199
199
node => {
200
200
expect ( node ) . toMatchSnapshot ( )
201
- expect ( node . excerpt ) . toMatch ( `Where oh where is my little pony?` )
201
+ expect ( node . excerpt ) . toBe ( `Where oh where is my little pony?` )
202
202
expect ( node . excerptAst ) . toMatchObject ( {
203
203
children : [
204
204
{
@@ -241,7 +241,7 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
241
241
`excerpt(format: PLAIN)` ,
242
242
node => {
243
243
expect ( node ) . toMatchSnapshot ( )
244
- expect ( node . excerpt ) . toMatch ( `Where oh where is my little pony?` )
244
+ expect ( node . excerpt ) . toBe ( `Where oh where is my little pony?` )
245
245
} ,
246
246
{ pluginOptions : { excerpt_separator : `<!-- end -->` } }
247
247
)
@@ -252,8 +252,8 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
252
252
`excerpt(format: HTML)` ,
253
253
node => {
254
254
expect ( node ) . toMatchSnapshot ( )
255
- expect ( node . excerpt ) . toMatch (
256
- `<p>Where oh where <strong>is</strong> my little pony?</p>`
255
+ expect ( node . excerpt ) . toBe (
256
+ `<p>Where oh where <strong>is</strong> my little pony?</p>\n `
257
257
)
258
258
} ,
259
259
{ pluginOptions : { excerpt_separator : `<!-- end -->` } }
@@ -265,7 +265,7 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
265
265
`excerpt(format: MARKDOWN)` ,
266
266
node => {
267
267
expect ( node ) . toMatchSnapshot ( )
268
- expect ( node . excerpt ) . toMatch ( `Where oh where **is** my little pony?` )
268
+ expect ( node . excerpt ) . toBe ( `Where oh where **is** my little pony?\n ` )
269
269
} ,
270
270
{ pluginOptions : { excerpt_separator : `<!-- end -->` } }
271
271
)
@@ -407,7 +407,7 @@ Where oh [*where*](nick.com) **_is_** ?`,
407
407
` ,
408
408
node => {
409
409
expect ( node ) . toMatchSnapshot ( )
410
- expect ( node . excerpt ) . toMatch (
410
+ expect ( node . excerpt ) . toBe (
411
411
`<p>Where oh <a href="nick.com"><em>where</em></a> <strong><em>is</em></strong> <img src="pony.png" alt="that pony">?</p>`
412
412
)
413
413
expect ( node . excerptAst ) . toMatchObject ( {
@@ -503,7 +503,7 @@ Where oh [*where*](nick.com) **_is_** ?`,
503
503
}
504
504
` ,
505
505
node => {
506
- expect ( node . excerpt ) . toMatch ( `Where oh where is that pony?` )
506
+ expect ( node . excerpt ) . toBe ( `Where oh where is that pony?` )
507
507
} ,
508
508
{ }
509
509
)
@@ -518,7 +518,7 @@ date: "2017-09-18T23:19:51.246Z"
518
518
My pony likes space on the left and right! ` ,
519
519
`excerpt` ,
520
520
node => {
521
- expect ( node . excerpt ) . toMatch ( `My pony likes space on the left and right!` )
521
+ expect ( node . excerpt ) . toBe ( `My pony likes space on the left and right!` )
522
522
} ,
523
523
{ }
524
524
)
@@ -535,7 +535,7 @@ My pony is little.
535
535
Little is my pony.` ,
536
536
`excerpt` ,
537
537
node => {
538
- expect ( node . excerpt ) . toMatch ( `My pony is little. Little is my pony.` )
538
+ expect ( node . excerpt ) . toBe ( `My pony is little. Little is my pony.` )
539
539
} ,
540
540
{ }
541
541
)
@@ -554,7 +554,7 @@ date: "2017-09-18T23:19:51.246Z"
554
554
It's pony time.` ,
555
555
`excerpt` ,
556
556
node => {
557
- expect ( node . excerpt ) . toMatch (
557
+ expect ( node . excerpt ) . toBe (
558
558
`Ponies: The Definitive Guide What time is it? It's pony time.`
559
559
)
560
560
} ,
@@ -573,7 +573,7 @@ date: "2017-09-18T23:19:51.246Z"
573
573
| My Little Pony | Me, Duh |` ,
574
574
`excerpt` ,
575
575
node => {
576
- expect ( node . excerpt ) . toMatch ( `Pony Owner My Little Pony Me, Duh` )
576
+ expect ( node . excerpt ) . toBe ( `Pony Owner My Little Pony Me, Duh` )
577
577
} ,
578
578
{ }
579
579
)
@@ -590,7 +590,7 @@ don't fix it.`,
590
590
// ^ Explicit syntax for trailing spaces to not get accidentally trimmed.
591
591
`excerpt` ,
592
592
node => {
593
- expect ( node . excerpt ) . toMatch ( `If my pony ain't broke, don't fix it.` )
593
+ expect ( node . excerpt ) . toBe ( `If my pony ain't broke, don't fix it.` )
594
594
} ,
595
595
{ }
596
596
)
@@ -609,7 +609,7 @@ date: "2017-09-18T23:19:51.246Z"
609
609
Pony express had nothing on my little pony.` ,
610
610
`excerpt` ,
611
611
node => {
612
- expect ( node . excerpt ) . toMatch (
612
+ expect ( node . excerpt ) . toBe (
613
613
`Pony express Pony express had nothing on my little pony.`
614
614
)
615
615
} ,
@@ -632,7 +632,7 @@ Where is my <code>pony</code> named leo?`,
632
632
` ,
633
633
node => {
634
634
expect ( node ) . toMatchSnapshot ( )
635
- expect ( node . excerpt ) . toMatch (
635
+ expect ( node . excerpt ) . toBe (
636
636
`<p>Where is my <code>pony</code> named leo?</p>`
637
637
)
638
638
expect ( node . excerptAst ) . toMatchObject ( {
@@ -687,7 +687,7 @@ Where oh where is that pony? Is he in the stable or down by the stream?`,
687
687
` ,
688
688
node => {
689
689
expect ( node ) . toMatchSnapshot ( )
690
- expect ( node . excerpt ) . toMatch (
690
+ expect ( node . excerpt ) . toBe (
691
691
`<p>Where oh where is that pony? Is he in the stable…</p>`
692
692
)
693
693
expect ( node . excerptAst ) . toMatchObject ( {
@@ -730,8 +730,8 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor sit amet v
730
730
` ,
731
731
node => {
732
732
expect ( node ) . toMatchSnapshot ( )
733
- expect ( node . excerpt ) . toMatch (
734
- `<p>Where oh where is that <em>pony</em>? Is he in the stable or by the stream?</p>`
733
+ expect ( node . excerpt ) . toBe (
734
+ `<p>Where oh where is that <em>pony</em>? Is he in the stable or by the stream?</p>\n `
735
735
)
736
736
expect ( node . excerptAst ) . toMatchObject ( {
737
737
children : [
0 commit comments