From 3f9109bafd1ef8e1a10ae69f0db53cdde6966502 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Wed, 22 Jan 2025 13:07:35 -0600 Subject: [PATCH] Rename helper function to be clearer --- src/wasm-lib/kcl/src/simulation_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wasm-lib/kcl/src/simulation_tests.rs b/src/wasm-lib/kcl/src/simulation_tests.rs index 2cc8a1c2ac..de049ea1f1 100644 --- a/src/wasm-lib/kcl/src/simulation_tests.rs +++ b/src/wasm-lib/kcl/src/simulation_tests.rs @@ -106,7 +106,7 @@ async fn execute(test_name: &str, render_to_png: bool) { ".environments[].**[].z[]" => rounded_redaction(4), }); }); - snapshot_common( + assert_common_snapshots( test_name, exec_state.mod_local.operations, exec_state.global.artifact_commands, @@ -131,7 +131,7 @@ async fn execute(test_name: &str, render_to_png: bool) { insta::assert_snapshot!("execution_error", report); }); - snapshot_common( + assert_common_snapshots( test_name, error.operations, error.artifact_commands, @@ -151,7 +151,7 @@ async fn execute(test_name: &str, render_to_png: bool) { /// Assert snapshots that should happen both when KCL execution succeeds and /// when it results in an error. -fn snapshot_common( +fn assert_common_snapshots( test_name: &str, operations: Vec, artifact_commands: Vec,