gkampitakis / go-snaps

Jest-like snapshot testing in Go 📸
https://pkg.go.dev/github.com/gkampitakis/go-snaps
MIT License
174 stars 6 forks source link

fix: ignore end chars --- inside snapshot #26

Closed gkampitakis closed 2 years ago

gkampitakis commented 2 years ago

closes #24

There is still a possibility if someone creates a snapshot in the below form

[test-id 1]
my snapshot

--- 

more data

--- <- end chars

it will break the functionality. ( Need to put some thinking into how / or if we should handle it )