Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed Nov 27, 2024
1 parent 418e473 commit a3d571c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/atlaspack_core/src/types/environment/engines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ impl Engines {

#[cfg(test)]
mod tests {
use anyhow::anyhow;

use super::*;
use pretty_assertions::assert_eq;

Expand All @@ -189,11 +187,11 @@ mod tests {
extends some-shared-browserslist
"#;

let result = EnginesBrowsers::from_browserslistrc(browserslistrc);

assert_eq!(
result,
Err(anyhow!("Browserlist extends not supported in Atlaspack V3"))
EnginesBrowsers::from_browserslistrc(browserslistrc)
.map_err(|err| err.to_string())
.unwrap_err(),
"Browserlist extends not supported in Atlaspack V3"
);
}
}

0 comments on commit a3d571c

Please sign in to comment.