@@ -112,8 +112,8 @@ describe("TypeScript terminology surface", () => {
112112 contentMode: "complete",
113113 codes: ["second", "first"],
114114 displays: {
115- [" second"] : "Second display",
116- [" first"] : "First display",
115+ second: "Second display",
116+ first: "First display",
117117 },
118118 } as const;
119119 export type CompleteExampleCode = (typeof CompleteExampleCodeSystem.codes)[number];
@@ -231,7 +231,7 @@ describe("TypeScript terminology surface", () => {
231231 output . indexOf ( JSON . stringify ( sourceConcepts [ 1 ] . code ) ) ,
232232 ) ;
233233 for ( const concept of sourceConcepts ) {
234- expect ( output ) . toContain ( `[ ${ JSON . stringify ( concept . code ) } ] : ${ JSON . stringify ( concept . display ) } ` ) ;
234+ expect ( output ) . toContain ( `${ concept . code } : ${ JSON . stringify ( concept . display ) } ` ) ;
235235 }
236236 } ) ;
237237
@@ -274,12 +274,8 @@ describe("TypeScript terminology surface", () => {
274274 ] ) ;
275275
276276 expect ( output ) . toContain ( 'codes: ["parent", "child", "sibling"]' ) ;
277- expect ( output . indexOf ( '["parent"]: "Parent display"' ) ) . toBeLessThan (
278- output . indexOf ( '["child"]: "Child display"' ) ,
279- ) ;
280- expect ( output . indexOf ( '["child"]: "Child display"' ) ) . toBeLessThan (
281- output . indexOf ( '["sibling"]: "Sibling display"' ) ,
282- ) ;
277+ expect ( output . indexOf ( 'parent: "Parent display"' ) ) . toBeLessThan ( output . indexOf ( 'child: "Child display"' ) ) ;
278+ expect ( output . indexOf ( 'child: "Child display"' ) ) . toBeLessThan ( output . indexOf ( 'sibling: "Sibling display"' ) ) ;
283279 } ) ;
284280
285281 it ( "handles deeply nested concepts without exhausting the stack" , async ( ) => {
@@ -308,7 +304,7 @@ describe("TypeScript terminology surface", () => {
308304 ] ) ;
309305
310306 expect ( output ) . toContain ( 'codes: ["code-0", "code-1"' ) ;
311- expect ( output ) . toContain ( `[ "code-${ depth } "] : "Display ${ depth } "` ) ;
307+ expect ( output ) . toContain ( `"code-${ depth } ": "Display ${ depth } "` ) ;
312308 } ) ;
313309
314310 it ( "fails deterministically when hierarchical concepts repeat a code" , async ( ) => {
0 commit comments