Skip to content

Commit

Permalink
Fix snapshot tests
Browse files Browse the repository at this point in the history
Summary:
The root cause is that these buck tests don't trigger on diffs. One block for enabling these tests is that these buck projects don't build on windows.

Here is a task to track making it build on windows, or ignore windows in BUCK: T191524124

Reviewed By: monicatang

Differential Revision: D58197791

fbshipit-source-id: 2f9e8e4dc907d3a699ced86753671f4bb04e574d
  • Loading branch information
tyao1 authored and facebook-github-bot committed Jun 6, 2024
1 parent 2ffd5c6 commit 88e1ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unsupported/hermes/crates/hermes_comments/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn fixtures() {
ast.source_type = SourceType::Script;
let mut attached_comments = find_nodes_after_comments(&ast, &comments);
attached_comments
.sort_by(|(comment1, _), (comment2, _)| comment1.trim().cmp(comment2.trim()));
.sort_by(|(comment1, _, _), (comment2, _, _)| comment1.trim().cmp(comment2.trim()));
assert_snapshot!(format!(
"Input:\n{}\n\nOutput:\n{}",
input,
Expand Down

0 comments on commit 88e1ec4

Please sign in to comment.