Skip to content

Commit

Permalink
Rename helper function to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Jan 31, 2025
1 parent 47bb183 commit 3f9109b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wasm-lib/kcl/src/simulation_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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<Operation>,
artifact_commands: Vec<ArtifactCommand>,
Expand Down

0 comments on commit 3f9109b

Please sign in to comment.