mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-05 03:13:34 +00:00
Identity test
This commit is contained in:
parent
c96e504adb
commit
0291eff99a
15
ui/qt/qwhisper/whisper_test.go
Normal file
15
ui/qt/qwhisper/whisper_test.go
Normal file
@ -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")
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user