Skip to content

Commit

Permalink
[#17393] test: fix test issue about translation
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Dec 11, 2023
1 parent ed92561 commit 5043435
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/status_im/browser/core_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.browser.core :as browser]
[utils.i18n :as i18n]
[utils.url :as url]))

(defn has-wrong-properties?
Expand Down Expand Up @@ -35,7 +36,7 @@
:history-index 0
:history ["https://cryptokitties.co"]
:dapp? false
:name "Browser"}))
:name (i18n/label :t/browser)}))
"some properties of the browser are not correct")

(testing "then a second dapp"
Expand Down Expand Up @@ -70,7 +71,7 @@
:history-index 0
:history ["https://cryptokitties.co"]
:dapp? false
:name "Browser"}))
:name (i18n/label :t/browser)}))
"some properties of the browser are not correct")
(is (nil? (browser/navigate-to-next-page result-open-existing))
"nothing should happen if user tries to navigate to next page")
Expand All @@ -90,7 +91,7 @@
:history-index 1
:history ["https://cryptokitties.co" dapp1-url2]
:dapp? false
:name "Browser"}))
:name (i18n/label :t/browser)}))
"some properties of the browser are not correct")

(testing "then navigates to previous page"
Expand All @@ -103,7 +104,7 @@
:history-index 0
:history ["https://cryptokitties.co" dapp1-url2]
:dapp? false
:name "Browser"}))
:name (i18n/label :t/browser)}))
"some properties of the browser are not correct")

(testing "then navigates to next page")
Expand All @@ -116,5 +117,5 @@
:history-index 1
:history ["https://cryptokitties.co" dapp1-url2]
:dapp? false
:name "Browser"}))
:name (i18n/label :t/browser)}))
"some properties of the browser are not correct"))))))))))))

0 comments on commit 5043435

Please sign in to comment.