Closed blowery closed 6 years ago
Testing... Yeah.
The existing unit tests sort of cover this, but there are no tests (that I can find) that explicitly cover the caching bit. I'll see if I can work something up.
@sirreal added tests for hashed lookups. They pass on master as well as here.
hash.js
, using justsha1
is 2.3k gzipped, whilesha1
is 8k.Switch to save some bytes and align with what calypso uses.