fix(ConstTypes): size should be same as in type
This commit is contained in:
@ -10,7 +10,8 @@ describe(ConstString.name, () => {
|
||||
|
||||
dv = sizedDataView(5)
|
||||
|
||||
serialize(dv, 'hello', ConstString(3))
|
||||
expect(() => serialize(dv, 'hello', ConstString(3))).toThrow()
|
||||
serialize(dv, 'hel', ConstString(3))
|
||||
expectDataViewEqual(dv, expected)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user