mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
fix(es/transforms/testing): Fix comparing logic (#2263)
swc_ecma_transform_testing: - Fix comparing logic.
This commit is contained in:
parent
e2d8465565
commit
f087d1515b
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2903,7 +2903,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "swc_ecma_transforms_testing"
|
||||
version = "0.32.1"
|
||||
version = "0.32.2"
|
||||
dependencies = [
|
||||
"ansi_term 0.12.1",
|
||||
"anyhow",
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_testing"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.32.1"
|
||||
version = "0.32.2"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
@ -692,6 +692,13 @@ where
|
||||
if let Ok("1") = env::var("UPDATE").as_deref() {
|
||||
results.push(NormalizedOutput::from(actual_src.clone()).compare_to_file(output));
|
||||
}
|
||||
|
||||
if NormalizedOutput::from(actual_src.clone())
|
||||
== NormalizedOutput::from(expected_src.clone())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
assert_eq!(
|
||||
DebugUsingDisplay(&actual_src),
|
||||
DebugUsingDisplay(&expected_src)
|
||||
|
Loading…
Reference in New Issue
Block a user