Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(random.ts): add support for generating random MayUseToken values
This commit introduces a new function `mayUseTokenInvalid()` which generates random `MayUseToken` values. The function creates a record with `parentsOwnToken` and `inheritFromParent` fields of type boolean. It also defines an `invalid` case where both `parentsOwnToken` and `inheritFromParent` are set to true, which is an invalid state. This invalid case is added to the `mayUseToken` generator using `Object.assign`. The `mayUseToken` generator is then added to the `Generators` and `JsonGenerators` objects to make it available for generating random `MayUseToken` values in tests. This change allows for more comprehensive testing of the `MayUseToken` type and its usage in the codebase.
- Loading branch information