|  | 
| 4 | 4 |  */ | 
| 5 | 5 | // Imports | 
| 6 | 6 | import { type Async, expect as _expect, type Expected, fn } from "@std/expect" | 
| 7 |  | -import { assert, assertEquals, type AssertionError as _AssertionError, assertIsError, assertMatch, assertNotEquals, assertNotStrictEquals, assertObjectMatch, assertStrictEquals } from "@std/assert" | 
|  | 7 | +import { assert, assertEquals, AssertionError, assertIsError, assertMatch, assertNotEquals, assertNotStrictEquals, assertObjectMatch, assertStrictEquals } from "@std/assert" | 
| 8 | 8 | import type { Arg, Arrayable, callback, Nullable, record, TypeOf } from "@libs/typing" | 
| 9 | 9 | import type { testing } from "./test.ts" | 
| 10 | 10 | import { STATUS_CODE as Status } from "@std/http/status" | 
| @@ -337,16 +337,6 @@ export interface ExtendedExpected<IsAsync = false> extends Expected<IsAsync> { | 
| 337 | 337 |   rejects: Async<ExtendedExpected<true>> | 
| 338 | 338 | } | 
| 339 | 339 | 
 | 
| 340 |  | -/** Error thrown when an assertion fails. */ | 
| 341 |  | -let AssertionError: typeof _AssertionError | 
| 342 |  | - | 
| 343 |  | -// AssertionError is not exported by `@std/expect` (and it differs from `@std/assert`) which is why we retrieve it this way | 
| 344 |  | -try { | 
| 345 |  | -  _expect(null).toBe(true) | 
| 346 |  | -} catch (error) { | 
| 347 |  | -  AssertionError = error.constructor | 
| 348 |  | -} | 
| 349 |  | - | 
| 350 | 340 | /** Process callback and format result to match {@link Expected} result interface. */ | 
| 351 | 341 | function process(not: boolean, evaluate: callback, message = ""): { message: () => string; pass: boolean } { | 
| 352 | 342 |   let pass = true | 
| @@ -729,4 +719,4 @@ export function reset(fn: any) { | 
| 729 | 719 | const expect = _expect as unknown as ((...args: Parameters<typeof _expect>) => ExtendedExpected) & { [K in keyof typeof _expect]: typeof _expect[K] } | 
| 730 | 720 | 
 | 
| 731 | 721 | export { AssertionError, expect, fn, Status } | 
| 732 |  | -export type { _AssertionError, _expect, Arg, Arrayable, Async, callback, Expected, Nullable, record, TypeOf } | 
|  | 722 | +export type { _expect, Arg, Arrayable, Async, callback, Expected, Nullable, record, TypeOf } | 
0 commit comments