@ external ( "__aspect" , "reportExpectedReflectedValue" ) declare function reportExpectedReflectedValue ( id , negated ) ; @ external ( "__aspect" , "reportExpectedSnapshot" ) declare function reportExpectedSnapshot ( id , name ) ; @ external ( "__aspect" , "reportExpectedTruthy" ) declare function reportExpectedTruthy ( negated ) ; @ external ( "__aspect" , "reportExpectedFalsy" ) declare function reportExpectedFalsy ( negated ) ; @ external ( "__aspect" , "reportExpectedFinite" ) declare function reportExpectedFinite ( negated ) ; @ external ( "__aspect" , "clearExpected" ) declare function clearExpected ( ) ; @ global export class Expected { static report < T > ( expected , negated = 0 ) { let value = Reflect . toReflectedValue ( expected ) ; Reflect . attachStackTrace ( value ) ; reportExpectedReflectedValue ( value , negated ) ; } static reportTruthy ( negated = 0 ) { reportExpectedTruthy ( negated ) ; } static reportFalsy ( negated = 0 ) { reportExpectedFalsy ( negated ) ; } static reportFinite ( negated = 0 ) { reportExpectedFinite ( negated ) ; } static reportSnapshot < T > ( actual , name = null ) { reportExpectedSnapshot ( Reflect . toReflectedValue ( actual , new Map < usize , i32 > ( ) ) , name ) ; } static clear ( ) { clearExpected ( ) ; } }