Skip to content

Commit

Permalink
[tests] added extra info on data mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Dec 17, 2023
1 parent 8dc092c commit 247a801
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package test

import (
"encoding/json"
"testing"

"github.com/gan-of-culture/get-sauce/static"
Expand Down Expand Up @@ -44,6 +45,8 @@ func Check(t *testing.T, args Args, data *static.Data) {
Size: defaultData.Size,
}
if !CheckData(args, temp) {
jsonData, _ := json.MarshalIndent(defaultData, "", " ")
t.Log(jsonData)
t.Errorf("Got: %v\nExpected: %v", temp, args)
}
}
Expand Down

0 comments on commit 247a801

Please sign in to comment.