Refactor and rename storage to Json

This commit is contained in:
2023-02-08 18:33:44 +00:00
parent 6aebdc8b5e
commit 38a200c648
5 changed files with 90 additions and 66 deletions

View File

@@ -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)