Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe committed Jan 31, 2025
1 parent d649440 commit 20ba865
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/pg_typecheck/tests/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use pg_diagnostics::PrintDiagnostic;
use pg_test_utils::test_database::get_new_test_db;
use pg_typecheck::{check_sql, TypecheckParams};
use sqlx::Executor;
use unicode_normalization::UnicodeNormalization;

async fn test(name: &str, query: &str, setup: &str) {
let test_db = get_new_test_db().await;
Expand Down Expand Up @@ -44,13 +43,10 @@ async fn test(name: &str, query: &str, setup: &str) {

let content = String::from_utf8(content).unwrap();

// Normalize Unicode characters
let normalized = content.nfkc().collect::<String>();

insta::with_settings!({
prepend_module_to_snapshot => false,
}, {
insta::assert_snapshot!(name, normalized);
insta::assert_snapshot!(name, content);
});
}

Expand Down

0 comments on commit 20ba865

Please sign in to comment.