Skip to content

Commit

Permalink
Fix tests with new @object property
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvenzi committed Sep 12, 2022
1 parent 885a6a2 commit e823e9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tx_getSchema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ func TestGetSchema(t *testing.T) {
"tag": "height",
"writers": nil,
},
map[string]interface{}{
"dataType": "@object",
"description": "",
"isKey": false,
"label": "Other Info",
"readOnly": false,
"required": false,
"tag": "info",
"writers": nil,
},
},
}
err = invokeAndVerify(stub, "getSchema", req, expectedPersonSchema, 200)
Expand Down
1 change: 1 addition & 0 deletions test/tx_updateAsset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func TestUpdateAsset(t *testing.T) {
"id": "318.207.920-48",
"dateOfBirth": "1999-05-06T22:12:41Z",
"height": 1.66,
"info": map[string]interface{}{},
}

req := map[string]interface{}{
Expand Down

0 comments on commit e823e9a

Please sign in to comment.