feat(expect): update formatter

* Token::Expect should format to expect
* since we still capture assert this means
  we can help users update to the new syntax
This commit is contained in:
rvcas
2023-02-09 00:57:38 -05:00
parent 6f591c633d
commit 9348caab2f
3 changed files with 5 additions and 5 deletions

View File

@@ -606,7 +606,7 @@ impl<'comments> Formatter<'comments> {
let keyword = match kind {
Some(AssignmentKind::Let) => "let ",
Some(AssignmentKind::Expect) => "assert ",
Some(AssignmentKind::Expect) => "expect ",
None => "try ",
};