forked from mirrors/gecko-dev
16 lines
321 B
JavaScript
16 lines
321 B
JavaScript
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);
|
|
});
|
|
});
|