From c1022796b83c2b271c73af5905604c67a1867ebf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 08:16:36 +0000 Subject: [PATCH] Add test for register_svg module registration Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/svg.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stdlib/src/svg.rs b/stdlib/src/svg.rs index 89fa46ba..2c2babdf 100644 --- a/stdlib/src/svg.rs +++ b/stdlib/src/svg.rs @@ -19,3 +19,20 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_register_svg() { + let mut registry = StdlibRegistry::default(); + registry.register_svg(); + + let module = registry.get_module("std.svg").unwrap(); + assert_eq!(module.name, "std.svg"); + assert_eq!(module.version, "1.0.0"); + assert!(module.exports.is_empty()); + assert!(module.required_capabilities.is_empty()); + } +}