Skip to content

Commit

Permalink
Enable wasm capabilities for tests in src/pixel.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and lu-zero committed Mar 10, 2024
1 parent f5efa32 commit 7eb09fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ impl ChromaSampling {
mod test {
use super::*;

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::*;

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
wasm_bindgen_test_configure!(run_in_browser);

#[cfg_attr(all(target_arch = "wasm32", target_os = "unknown"), wasm_bindgen_test)]
#[test]
fn chroma_sampling_from_int() {
let expected = [
Expand Down

0 comments on commit 7eb09fc

Please sign in to comment.