(name, values)
| 517 | PropertyType: refs.map(ref), |
| 518 | }) |
| 519 | const enumDef = (name, values) => ({ |
| 520 | Type: 'variable', |
| 521 | Name: name, |
| 522 | IsChoiceAddition: false, |
| 523 | Comments: [], |
| 524 | PropertyType: values.map(lit), |
| 525 | }) |
| 526 | |
| 527 | it('flags a union whose every arm is an object type as objectOnly', () => { |
| 528 | const s = projectSchema([union('x.U', ['x.A', 'x.B']), rec('x.A', 'a'), rec('x.B', 'b')], {}) |
no test coverage detected