Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Dec 20, 2023
1 parent 8dc08ba commit 031067a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions tests/snapshots/shims_test__creates_global_shims.snap
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
---
source: tests/shims_test.rs
expression: "std::fs::read_to_string(sandbox.path().join(\".proto/shims\").join(if cfg!(windows)\n {\n format!(\"{}.cmd\", \"schema-test\")\n } else { \"schema-test\".to_string() })).unwrap()"
expression: "std::fs::read_to_string(sandbox.path().join(\".proto/shims/registry.json\")).unwrap()"
---
#!/usr/bin/env bash
set -e

if [ -n "$PROTO_DEBUG" ]; then
set -x
echo "Running with schema-test.sh shim"
fi

exec proto run schema-test -- "$@"

{
"schema-test": {}
}
2 changes: 1 addition & 1 deletion tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generate_resolve_versions_tests!(
"1.0.3" => "1.0.3",
"1.4" => "1.4.0",
"1.5" => "1.5.1",
"1" => "1.17.4",
"1" => "1.18.5",
},
Some(locate_fixture("schemas").join("base.toml"))
);
Expand Down

0 comments on commit 031067a

Please sign in to comment.