Skip to content

Commit

Permalink
fix: grammatical error in packages-without-package-json (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleralbee authored Jul 7, 2024
1 parent 4371cbd commit e242016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/packages_without_package_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Issue for PackagesWithoutPackageJsonIssue {
}

fn message(&self) -> String {
format!(" {}/package.json doesn't exists.", self.package)
format!(" {}/package.json doesn't exist.", self.package)
}

fn why(&self) -> Cow<'static, str> {
Expand Down Expand Up @@ -74,7 +74,7 @@ mod test {
assert_eq!(issue.level(), IssueLevel::Warning);

colored::control::set_override(false);
assert_eq!(issue.message(), " test/package.json doesn't exists.");
assert_eq!(issue.message(), " test/package.json doesn't exist.");
assert_eq!(
issue.why(),
"All packages matching the workspace should have a package.json file."
Expand Down

0 comments on commit e242016

Please sign in to comment.