fix broken test
This commit is contained in:
parent
bf6646383c
commit
7bf4a2730d
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ func testCard(item *core.Card) func(t *testing.T) {
|
||||||
|
|
||||||
func testCardCreate(store *cardStore) func(t *testing.T) {
|
func testCardCreate(store *cardStore) func(t *testing.T) {
|
||||||
return func(t *testing.T) {
|
return func(t *testing.T) {
|
||||||
item := &core.CreateCard{
|
item := &core.Card{
|
||||||
Id: 1,
|
Id: 1,
|
||||||
Build: 1,
|
Build: 1,
|
||||||
Stage: 2,
|
Stage: 2,
|
||||||
|
|
|
@ -27,7 +27,7 @@ func toParams(card *core.Card) (map[string]interface{}, error) {
|
||||||
|
|
||||||
// helper function converts the card structure to a set
|
// helper function converts the card structure to a set
|
||||||
// of named query parameters.
|
// of named query parameters.
|
||||||
func toSaveCardParams(card *core.CreateCard, data []byte) (map[string]interface{}, error) {
|
func toSaveCardParams(card *core.Card, data []byte) (map[string]interface{}, error) {
|
||||||
return map[string]interface{}{
|
return map[string]interface{}{
|
||||||
"card_id": card.Id,
|
"card_id": card.Id,
|
||||||
"card_build": card.Build,
|
"card_build": card.Build,
|
||||||
|
|
Loading…
Reference in a new issue