Skip to content

Commit

Permalink
update import in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Nov 16, 2023
1 parent 5790946 commit a087354
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/tests/cache.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as assert from "assert";
import { Cache } from "../cache";
import { StrongCache as Cache } from "@wry/caches";

describe("least-recently-used cache", function () {
it("can hold lots of elements", function () {
const cache = new Cache;
const cache = new Cache();
const count = 1000000;

for (let i = 0; i < count; ++i) {
Expand Down Expand Up @@ -72,8 +72,10 @@ describe("least-recently-used cache", function () {

if (sequence.length > 0) {
assert.strictEqual((cache as any).newest.key, sequence[0]);
assert.strictEqual((cache as any).oldest.key,
sequence[sequence.length - 1]);
assert.strictEqual(
(cache as any).oldest.key,
sequence[sequence.length - 1]
);
}
}

Expand Down

0 comments on commit a087354

Please sign in to comment.