Refactor and rename storage to Json
This commit is contained in:
@@ -20,7 +20,7 @@ func TestWebserviceGetSuperHeros(t *testing.T) {
|
||||
}
|
||||
|
||||
// Load heros
|
||||
heros, err := storage.New(path + "/data/heros.json")
|
||||
heros, err := storage.NewJson(path + "/data/heros.json")
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("Error loading heros: %heros", err)
|
||||
@@ -128,7 +128,7 @@ func TestWebserviceStoreSuperhero(t *testing.T) {
|
||||
}
|
||||
|
||||
// Load heros
|
||||
heros, err := storage.New(path + "/data/heros.json")
|
||||
heros, err := storage.NewJson(path + "/data/heros.json")
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("Error loading heros: %heros", err)
|
||||
|
||||
Reference in New Issue
Block a user