import { strict } from "assert" ; import { assert } from "../../assert" ; describe ( "Assert" , ( ) => { it ( "Validate Shortcode Format" , async ( ) => { for ( const shortCode of [ "0x000" , "0x03a" , "0x200" , "0x4321" ] ) { try { assert ( false , Number . parseInt ( shortCode , 16 ) ) ; } catch ( e ) { strict ( e instanceof Error , "not an error" ) ; strict . strictEqual ( e . message , shortCode , "incorrect short code format" ) ; } } } ) ; } ) ;