From 88e1ec4bbac00e000d11d77ae201662f63c65bc9 Mon Sep 17 00:00:00 2001 From: Tianyu Yao Date: Wed, 5 Jun 2024 17:09:48 -0700 Subject: [PATCH] Fix snapshot tests 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 --- unsupported/hermes/crates/hermes_comments/tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/hermes/crates/hermes_comments/tests/test.rs b/unsupported/hermes/crates/hermes_comments/tests/test.rs index dfbeac97186..d6bfe5c5b00 100644 --- a/unsupported/hermes/crates/hermes_comments/tests/test.rs +++ b/unsupported/hermes/crates/hermes_comments/tests/test.rs @@ -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,