DEV: Fix failing test.

This commit is contained in:
Alan Guo Xiang Tan 2022-01-11 10:50:18 +08:00
parent 6fb89c153a
commit 2ee9a09c8c
2 changed files with 2 additions and 2 deletions

View File

@ -1520,7 +1520,7 @@ var bar = 'bar';
assert.cookedOptions(
":grin: @sam",
{ featuresOverride: ["emoji"] },
'<p><img src="/images/emoji/google_classic/grin.png?v=10" title=":grin:" class="emoji" alt=":grin:"> @sam</p>',
`<p><img src="/images/emoji/google_classic/grin.png?v=${v}" title=":grin:" class="emoji" alt=":grin:"> @sam</p>`,
"cooks emojis when only the emoji markdown engine is enabled"
);

View File

@ -2093,7 +2093,7 @@ HTML
cooked = PrettyText.cook(':grin: @mention', features_override: ["emoji"])
expect(cooked).to eq("<p><img src=\"/images/emoji/twitter/grin.png?v=10\" title=\":grin:\" class=\"emoji\" alt=\":grin:\"> @mention</p>")
expect(cooked).to eq("<p><img src=\"/images/emoji/twitter/grin.png?v=#{Emoji::EMOJI_VERSION}\" title=\":grin:\" class=\"emoji\" alt=\":grin:\"> @mention</p>")
cooked = PrettyText.cook(':grin: @mention', features_override: ["mentions", "text-post-process"])