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

@ -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)
})