Refactored extras field parsing
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user