Fixes + stable gateway ids
This commit is contained in:
21
api/pkg/model/chainasset_test.go
Normal file
21
api/pkg/model/chainasset_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/tech/sendico/pkg/db/storable"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
)
|
||||
|
||||
func TestChainAssetDescriptionImplementsStorable(t *testing.T) {
|
||||
var _ storable.Storable = (*ChainAssetDescription)(nil)
|
||||
}
|
||||
|
||||
func TestChainAssetDescriptionCollection(t *testing.T) {
|
||||
var desc ChainAssetDescription
|
||||
want := string(mservice.ChainAssets)
|
||||
if got := desc.Collection(); got != want {
|
||||
t.Fatalf("Collection() = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user