function assertThrowsimport { assertThrows } from "https://dotland.deno.dev/x/oak@v11.1.0/test_deps.ts"; assertThrows(fn: () => unknown, msg?: string): unknownExecutes a function, expecting it to throw. If it does not, then it throws. assertThrows<E extends Error = Error>(fn: () => unknown,ErrorClass: new (...args: any[]) => E,msgIncludes?: string,msg?: string,): EExecutes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. assertThrows(fn: () => unknown,errorCallback: (e: Error) => unknown,msg?: string,): ErrorExecutes a function, expecting it to throw. If it does not, then it throws. Parametersfn: () => unknownoptionalmsg: stringReturnsunknownExecutes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Type ParametersoptionalE extends Error = ErrorParametersfn: () => unknownErrorClass: new (...args: any[]) => EoptionalmsgIncludes: stringoptionalmsg: stringReturnsEParametersfn: () => unknownerrorCallback: (e: Error) => unknownoptionalmsg: stringReturnsError