-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ens validation logic and basic component test
- Loading branch information
1 parent
dc7cd15
commit ffa2973
Showing
4 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
src/quo2/components/inputs/address_input/component_spec.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
(ns quo2.components.inputs.address-input.component-spec) | ||
(ns quo2.components.inputs.address-input.component-spec | ||
(:require [quo2.components.inputs.address-input.view :as address-input] | ||
[test-helpers.component :as h] | ||
[react-native.clipboard :as clipboard])) | ||
|
||
(h/describe "Address input" | ||
(h/test "default render" | ||
(with-redefs [clipboard/get-string (fn [callback] #(callback ""))] | ||
(h/render [address-input/address-input]) | ||
(h/is-truthy (h/query-by-label-text :address-text-input))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters