From fbcda0272613e70a48c204d13b2decaa34ccfc51 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 25 Dec 2024 15:46:18 +0100 Subject: [PATCH] tests: fix translator tests tags --- spec/unit/translator_spec.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/unit/translator_spec.lua b/spec/unit/translator_spec.lua index e6e693e0c..4da805f40 100644 --- a/spec/unit/translator_spec.lua +++ b/spec/unit/translator_spec.lua @@ -35,12 +35,11 @@ describe("Translator module", function() -- be between about 100 and 130 characters assert.is_true(#translation_result > 50 and #translation_result < 200) end) - it("should include romanization results when configured to be shown", function() + it("should include romanization results when configured to be shown #internet", function() G_reader_settings:saveSetting("translator_with_romanizations", true) local translation_result = Translator:loadPage(chinese_wikipedia_text, "en", "auto") local romanizations = getRomanizations(translation_result) assert.is.same(1, #romanizations) - -- The word free (zìyóu) appears 3 times in the romanization local free_index = string.find(romanizations[1], "zìyóu") assert.is.truthy(free_index) @@ -49,7 +48,7 @@ describe("Translator module", function() free_index = string.find(romanizations[1], "zìyóu", free_index + 1) assert.is.truthy(free_index) end) - it("should not include romanization results when not configured to be shown", function() + it("should not include romanization results when not configured to be shown #internet", function() G_reader_settings:saveSetting("translator_with_romanizations", false) assert.is_false(G_reader_settings:isTrue("translator_with_romanizations")) local translation_result = Translator:loadPage(chinese_wikipedia_text, "en", "auto")