(min: number, max: number)
| 3 | import { stubProperty } from "@std/testing/unstable-stub-property"; |
| 4 | |
| 5 | export function generateRandomString(min: number, max: number): string { |
| 6 | return Array.from({ length: Math.floor(Math.random() * (max - min) + min) }) |
| 7 | .map(() => String.fromCharCode(Math.floor(Math.random() * 26) + 97)) |
| 8 | .join(""); |
| 9 | } |
| 10 | |
| 11 | export function stubIntlFunctions(defaultLocale: string) { |
| 12 | const fnNames = ["toLocaleLowerCase", "toLocaleUpperCase"] as const; |
no test coverage detected