mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
update createHash implementation and add tests
This commit is contained in:
@@ -17,7 +17,7 @@ describe("ContentCache size accounting", () => {
|
||||
expect(cache.currentBytes).toBe(0);
|
||||
});
|
||||
|
||||
it("replacing an entry reflects the new size, not old + new", () => {
|
||||
it("replacing an entry reflects the new size", () => {
|
||||
const cache = new ContentCache(1024);
|
||||
cache.set("a.md", "short");
|
||||
cache.set("a.md", "a much longer string");
|
||||
|
||||
Reference in New Issue
Block a user