fix(ConstTypes): size should be same as in type
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user