summaryrefslogtreecommitdiff
path: root/data_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'data_test.go')
-rw-r--r--data_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/data_test.go b/data_test.go
index d4f2000d..965a2494 100644
--- a/data_test.go
+++ b/data_test.go
@@ -130,13 +130,13 @@ func TestDatasource(t *testing.T) {
data := &Data{
Sources: sources,
}
- expected := map[string]interface{}{"hello": "world"}
+ expected := map[string]interface{}{"hello": map[interface{}]interface{}{"cruel": "world"}}
actual := data.Datasource("foo")
- assert.Equal(t, expected["hello"], actual["hello"])
+ assert.Equal(t, expected, actual)
}
- test("json", "application/json", `{"hello":"world"}`)
- test("yml", "application/yaml", `hello: world`)
+ test("json", "application/json", `{"hello":{"cruel":"world"}}`)
+ test("yml", "application/yaml", "hello:\n cruel: world\n")
}
func TestDatasourceExists(t *testing.T) {