Skip to content

Commit

Permalink
fix Windows snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jan 4, 2024
1 parent 008e1aa commit b19ebea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ func (g G) loadSnapshots() {
g.E(err)

for _, path := range paths {
g.snapshots.Store(path, snapshot{g.Read(path).String(), false})
b, err := json.MarshalIndent(g.JSON(g.Read(path)), "", " ")
g.E(err)

g.snapshots.Store(path, snapshot{string(b), false})
}

g.Cleanup(func() {
Expand Down

0 comments on commit b19ebea

Please sign in to comment.