We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8614bd commit 70e269aCopy full SHA for 70e269a
spec/services/base_spec.rb
@@ -82,11 +82,6 @@ class EmptyTranslator < DiscourseTranslator::Base
82
post.cooked = text
83
expect(DiscourseTranslator::Base.text_for_detection(post)).to eq(text)
84
end
85
-
86
- it "strips text before truncation" do
87
- post.cooked = "<img src='http://example.com/image.png' />" + "a" * 1000
88
- expect(DiscourseTranslator::Base.text_for_detection(post)).to eq("a" * 1000)
89
- end
90
91
92
describe ".text_for_translation" do
0 commit comments