lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

lib.rs (681B)


      1 mod dto;
      2 
      3 pub use dto::dto_roots;
      4 pub use radroots_core as upstream;
      5 
      6 #[cfg(test)]
      7 mod tests {
      8     const GENERATED_TYPES_TS: &str = include_str!("../tests/fixtures/generated_types.ts");
      9 
     10     #[test]
     11     fn generated_core_types_are_source_rendered() {
     12         assert!(GENERATED_TYPES_TS.contains("export type Money"));
     13         assert!(GENERATED_TYPES_TS.contains("export type QuantityPrice"));
     14         assert!(GENERATED_TYPES_TS.contains("export type UnitDimension"));
     15         assert!(GENERATED_TYPES_TS.contains("label?: string | null"));
     16         assert!(!GENERATED_TYPES_TS.contains("label: string | null"));
     17         assert!(!GENERATED_TYPES_TS.contains("RadrootsCore"));
     18     }
     19 }