Skip to content

Commit

Permalink
Add another test and example placeholder json
Browse files Browse the repository at this point in the history
  • Loading branch information
jleeh committed Apr 16, 2019
1 parent 6ed8459 commit bb3b8d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions json/placeholder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"name": "Placeholder",
"method": "GET",
"url": "https://reqres.in/api/users",
"opts": {
"query": {
"page": "page"
}
}
}
]
3 changes: 3 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func TestNewJSONBridges(t *testing.T) {
"from_currency": "GBP",
"to_currency": "EUR",
}, []string{"Error Message"}},
{"json/placeholder.json", "Placeholder", map[string]interface{}{
"page": 1,
}, []string{"page", "per_page", "total_pages"}},
}
for _, c := range cases {
t.Run(c.path, func(t *testing.T) {
Expand Down

0 comments on commit bb3b8d3

Please sign in to comment.