Skip to content

Commit bb0200c

Browse files
committed
test: cover both partial and full deletion of @type array
1 parent b8e33e5 commit bb0200c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/operations.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ describe("processConversionTMtoTD", () => {
416416
""
417417
);
418418

419+
if (result["@type"]) {
420+
expect(Array.isArray(result["@type"])).toBe(true);
421+
expect(result["@type"]).not.toContain("tm:ThingModel");
422+
}
419423
expect(result).not.toHaveProperty("tm:required");
420424
});
421425

0 commit comments

Comments
 (0)