(
context: Deno.TestContext,
options?: SnapshotOptions,
)
| 649 | } |
| 650 | |
| 651 | function getTestName( |
| 652 | context: Deno.TestContext, |
| 653 | options?: SnapshotOptions, |
| 654 | ): string { |
| 655 | if (options && options.name) { |
| 656 | return options.name; |
| 657 | } else if (context.parent) { |
| 658 | return `${getTestName(context.parent)} > ${context.name}`; |
| 659 | } |
| 660 | return context.name; |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | /** |