mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
DEV: Fix failing test.
This commit is contained in:
parent
6fb89c153a
commit
2ee9a09c8c
@ -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"
|
||||
);
|
||||
|
||||
|
@ -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"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user