Skip to content

Commit 233ec80

Browse files
committed
fix(pm): rename unparseable to unparsable (typos CI)
`crate-ci/typos` flagged "Unparseable"/"unparseable" as misspellings. The accepted spelling is "Unparsable"/"unparsable". Renames the comment, the test name, and the assertion message.
1 parent b0a7a0d commit 233ec80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/vite_install/src/commands/approve_builds.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fn pnpm_supports_approve_builds_all(version: &str) -> bool {
147147
// Compare against the lowest prerelease of 10.32.0 (`10.32.0-0`) so that
148148
// prereleases of 10.32.0 (e.g. `10.32.0-rc.0`, `10.32.0-beta.1`) also
149149
// satisfy the gate per semver ordering rules.
150-
// Unparseable versions are treated as not-supported (strict), since the
150+
// Unparsable versions are treated as not-supported (strict), since the
151151
// production path always populates `version` from a validated semver.
152152
let floor = Version::parse("10.32.0-0").expect("static semver");
153153
Version::parse(version).is_ok_and(|v| v >= floor)
@@ -335,15 +335,15 @@ mod tests {
335335
}
336336

337337
#[test]
338-
fn pnpm_unparseable_version_rejects_all() {
339-
// Strict gate: unparseable versions (a corruption/edge case) fail the check.
338+
fn pnpm_unparsable_version_rejects_all() {
339+
// Strict gate: unparsable versions (a corruption/edge case) fail the check.
340340
let pm = create_mock_package_manager(PackageManagerType::Pnpm, "latest");
341341
let err = pm
342342
.resolve_approve_builds_command(&ApproveBuildsCommandOptions {
343343
all: true,
344344
..Default::default()
345345
})
346-
.expect_err("unparseable version should fail the gate");
346+
.expect_err("unparsable version should fail the gate");
347347
assert!(matches!(err, Error::InvalidArgument(_)));
348348
}
349349

0 commit comments

Comments
 (0)