Skip to content

Commit

Permalink
Fix some brittle snapshots based on github api responses (#74)
Browse files Browse the repository at this point in the history
Updates snapshot tests, should unblock #71
  • Loading branch information
ZoteTheMighty committed Jul 18, 2023
1 parent e71923b commit 55e2fba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/snapshots/install_all_tools_before_failing.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: tests/cli.rs
assertion_line: 101
expression: content
---
[INFO ] Downloading github.com/Roblox/NotARepository@^0.1.0
Expand All @@ -9,7 +8,7 @@ expression: content
Request from `https://api.github.com/repos/Roblox/NotARepository/releases`

Received body:
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#list-releases"}
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#list-releases"}
[INFO ] Downloading github.com/Roblox/@^0.2.0
[ERROR] The following error occurred while trying to download tool "badly-formatted-tool":
unexpected response body: invalid type: map, expected a sequence at line 1 column 0
Expand All @@ -23,7 +22,7 @@ expression: content
Request from `https://api.github.com/repos/Roblox/VeryFakeRepository/releases`

Received body:
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#list-releases"}
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#list-releases"}
The following tools were not installed:
[
"also-not-a-real-tool",
Expand Down

0 comments on commit 55e2fba

Please sign in to comment.