Commit d014028
committed
test: type the field-builder fixtures instead of suppressing
The three bare @ts-expect-error directives hid ordinary fixture mistakes rather than
asserting anything: `fixed` and `pattern` are FHIRSchemaPattern objects, not strings, and
`definition` is not a member of FHIRSchemaElement at all — fhirschema drops it, and the
test only ever asserted the field's type name.
Build the two patterns properly and drop the `definition` line; `short` already carries
the description the test is named for.1 parent 5e022cb commit d014028
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | | - | |
182 | | - | |
| 180 | + | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
| |||
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
263 | | - | |
264 | | - | |
265 | 261 | | |
266 | 262 | | |
267 | 263 | | |
| |||
0 commit comments