Refactored extras field parsing

This commit is contained in:
2026-03-18 18:22:53 +01:00
parent 6adf1281ef
commit e9e329ccc1
3 changed files with 166 additions and 95 deletions

View File

@@ -950,7 +950,7 @@ describe("Packet dissection with sections", () => {
const commentSection = result.structure?.find((s) => s.name === "comment");
expect(commentSection).toBeDefined();
expect(commentSection?.data?.byteLength).toBe("Test message".length);
expect(commentSection?.fields?.[0]?.name).toBe("text");
expect(commentSection?.fields?.[0]?.name).toBe("comment");
});
});