🐦‍⬛ Snapshot testing in Gleam

:bug: Fix snapshot tests failing on Windows

Changed files
+6 -1
src
+5 -1
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## Unreleased 4 + 5 + - 🐛 Fixed a bug where snapshot tests would fail on Windows 6 + 3 7 ## v1.2.1 - 2024-08-20 4 8 5 9 - ⬆️ Update `stdlib` to `>= 0.40.0 and < 1.0.0` ··· 7 11 ## v1.2.0 - 2024-08-12 8 12 9 13 - ✨ Birdie can now suggest and run the correct command if it can tell you've 10 - made a typo. 14 + made a typo 11 15 12 16 ## v1.1.8 - 2024-05-28 13 17
+1
src/birdie.gleam
··· 199 199 } 200 200 201 201 fn deserialise(raw: String) -> Result(Snapshot(a), Nil) { 202 + let raw = string.replace(each: "\r\n", in: raw, with: "\n") 202 203 case split_n(raw, 4, "\n") { 203 204 Ok(#(["---", "version: " <> _, "title: " <> title, "---"], content)) -> 204 205 Ok(Snapshot(title: title, content: content, info: None))