aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/qwhisper
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/qwhisper')
-rw-r--r--ui/qt/qwhisper/whisper_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/qt/qwhisper/whisper_test.go b/ui/qt/qwhisper/whisper_test.go
new file mode 100644
index 000000000..efa4e6238
--- /dev/null
+++ b/ui/qt/qwhisper/whisper_test.go
@@ -0,0 +1,15 @@
+package qwhisper
+
+import (
+ "testing"
+
+ "github.com/ethereum/go-ethereum/whisper"
+)
+
+func TestHasIdentity(t *testing.T) {
+ qw := New(whisper.New())
+ id := qw.NewIdentity()
+ if !qw.HasIdentity(id) {
+ t.Error("expected to have identity")
+ }
+}