Source code

Revision control

Copy as Markdown

Other Tools

import { LinksCache } from "lib/LinksCache.sys.mjs";
describe("LinksCache", () => {
it("throws when failing request", async () => {
const cache = new LinksCache();
let rejected = false;
try {
await cache.request();
} catch (error) {
rejected = true;
}
assert(rejected);
});
});