mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Add mock EthClient for testing
This commit is contained in:
14
eth/client_test.go
Normal file
14
eth/client_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package eth
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestClientInterface(t *testing.T) {
|
||||
var c ClientInterface
|
||||
client := NewClient(nil, nil, nil, nil)
|
||||
c = client
|
||||
require.NotNil(t, c)
|
||||
}
|
||||
Reference in New Issue
Block a user