Skip to content

Commit

Permalink
refactor: remove commented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos committed Jul 29, 2024
1 parent 6021d12 commit abf82cf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 1,227 deletions.
50 changes: 0 additions & 50 deletions crates/biome_js_syntax/src/parentheses/assignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,53 +140,3 @@ fn ts_as_or_satisfies_needs_parens(node: &JsSyntaxNode) -> bool {
)
})
}

// #[cfg(test)]
// mod tests {
// use crate::*;

// #[test]
// fn js_identifier_assignment() {
// assert_needs_parentheses!("for ((async) of []) {}", JsIdentifierAssignment);

// assert_not_needs_parentheses!("for await (async of []) {}", JsIdentifierAssignment);
// assert_not_needs_parentheses!("for (test of []) {}", JsIdentifierAssignment);
// }

// #[test]
// fn ts_as_assignment() {
// assert_needs_parentheses!("a as number = 'test'", TsAsAssignment);
// assert_needs_parentheses!("(a as number)! = 'test'", TsAsAssignment);
// assert_needs_parentheses!("(<number>(a as number)) = 'test'", TsAsAssignment);
// assert_needs_parentheses!("++(a as number)", TsAsAssignment);
// assert_needs_parentheses!("(a as number)--", TsAsAssignment);
// assert_needs_parentheses!("({ a: a as number } = { a: 5 })", TsAsAssignment);
// }

// #[test]
// fn ts_satisfies_assignment() {
// assert_needs_parentheses!("a satisfies number = 'test'", TsSatisfiesAssignment);
// assert_needs_parentheses!("(a satisfies number)! = 'test'", TsSatisfiesAssignment);
// assert_needs_parentheses!(
// "(<number>(a satisfies number)) = 'test'",
// TsSatisfiesAssignment
// );
// assert_needs_parentheses!("++(a satisfies number)", TsSatisfiesAssignment);
// assert_needs_parentheses!("(a satisfies number)--", TsSatisfiesAssignment);
// assert_needs_parentheses!(
// "({ a: a satisfies number } = { a: 5 })",
// TsSatisfiesAssignment
// );
// }

// #[test]
// fn ts_type_assertion_assignment() {
// assert_needs_parentheses!("(<number>a) = 'test'", TsTypeAssertionAssignment);
// assert_needs_parentheses!("(<number>a)! = 'test'", TsTypeAssertionAssignment);
// assert_needs_parentheses!("(<number>(<any>a)) = 'test'", TsTypeAssertionAssignment[0]);
// assert_needs_parentheses!("(<number>(<any>a)) = 'test'", TsTypeAssertionAssignment[1]);
// assert_needs_parentheses!("++(<number>a)", TsTypeAssertionAssignment);
// assert_needs_parentheses!("(<number>a)--", TsTypeAssertionAssignment);
// assert_not_needs_parentheses!("({ a: <number>a } = { a: 5 })", TsTypeAssertionAssignment);
// }
// }
Loading

0 comments on commit abf82cf

Please sign in to comment.