()
| 178 | const makeStringId = (s?: string): StringId => |
| 179 | s !== undefined ? S.decodeSync(StringIdSchemaBase)(s) : nanoid() as unknown as StringId |
| 180 | const StringIdArb = (): S.Arbitrary<StringId> => (fc) => |
| 181 | fc |
| 182 | .uint8Array({ minLength: length, maxLength: length }) |
| 183 | .map((_) => customRandom(urlAlphabet, size, (size) => _.subarray(0, size))() as StringId) |
| 184 | /** |
| 185 | * A string that is at least 6 characters long and a maximum of 50. |
| 186 | * |
no test coverage detected
searching dependent graphs…