fix(ConstTypes): size should be same as in type
This commit is contained in:
@ -13,6 +13,8 @@ describe(ConstDataView.name, () => {
|
||||
|
||||
actual = new DataView(buffer, 2, 2)
|
||||
|
||||
expect(() => serialize(actual, dv, ConstDataView(1))).toThrow()
|
||||
|
||||
serialize(actual, dv, ConstDataView(2))
|
||||
expectDataViewEqual(new DataView(actual.buffer), expected)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user