digidem / mapeo-core-next

The upcoming version of Mapeo Core
MIT License
7 stars 1 forks source link

chore: fix type errors in bitfield-rle tests #624

Closed EvanHahn closed 1 month ago

EvanHahn commented 2 months ago

This fixes all the type errors in the tests for bitfield-rle. Some of the type errors were entirely test-only, but others required changes to the "real" code. Most notably, many Buffer types were changed to Uint8Array.

EvanHahn commented 1 month ago

I redid this to limit source changes.

encodingLength was only used in tests and its tests had tricky type errors. I made encodingLength private and removed the tests.