From 2ee9a09c8c761542e9ea21bd76747657170c78e0 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 11 Jan 2022 10:50:18 +0800 Subject: [PATCH] DEV: Fix failing test. --- .../javascripts/discourse/tests/unit/lib/pretty-text-test.js | 2 +- spec/components/pretty_text_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/tests/unit/lib/pretty-text-test.js b/app/assets/javascripts/discourse/tests/unit/lib/pretty-text-test.js index 33215f44cdb..2f80646e341 100644 --- a/app/assets/javascripts/discourse/tests/unit/lib/pretty-text-test.js +++ b/app/assets/javascripts/discourse/tests/unit/lib/pretty-text-test.js @@ -1520,7 +1520,7 @@ var bar = 'bar'; assert.cookedOptions( ":grin: @sam", { featuresOverride: ["emoji"] }, - '

:grin: @sam

', + `

:grin: @sam

`, "cooks emojis when only the emoji markdown engine is enabled" ); diff --git a/spec/components/pretty_text_spec.rb b/spec/components/pretty_text_spec.rb index 7760458d03a..dcd3bd849ef 100644 --- a/spec/components/pretty_text_spec.rb +++ b/spec/components/pretty_text_spec.rb @@ -2093,7 +2093,7 @@ HTML cooked = PrettyText.cook(':grin: @mention', features_override: ["emoji"]) - expect(cooked).to eq("

\":grin:\" @mention

") + expect(cooked).to eq("

\":grin:\" @mention

") cooked = PrettyText.cook(':grin: @mention', features_override: ["mentions", "text-post-process"])