(id: string)
| 62 | * Generate Text component definition |
| 63 | */ |
| 64 | const textComponentArb = (id: string) => fc.record({ |
| 65 | id: fc.constant(id), |
| 66 | component: fc.record({ |
| 67 | Text: fc.record({ |
| 68 | text: fc.record({ literalString: fc.string() }), |
| 69 | }), |
| 70 | }), |
| 71 | }) as fc.Arbitrary<ComponentDefinition>; |
| 72 | |
| 73 | // ================== |
| 74 | // Property Tests |