fix(ConstTypes): size should be same as in type

This commit is contained in:
2025-08-04 18:43:08 +03:00
parent f25af1b6ac
commit b9d12b1945
7 changed files with 17 additions and 3 deletions

View File

@ -80,13 +80,13 @@ describe(Struct.name, () => {
const token = {
data: { name: 'sek1ro' },
header: { expires: 1 },
signature: sizedDataView(4),
signature: filledDataView([0xFF, 0xFF, 0xFF, 0xFF]),
}
const token_dv = filledDataView([
0x00, 0x00, 0x00, 0x10, // data_head
// header
0x3F, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // header.expires
0x00, 0x00, 0x00, 0x00, // signature
0xFF, 0xFF, 0xFF, 0xFF, // signature
// data
0x00, 0x00, 0x00, 0x04, // data.name_head
// data.name