blob: 44c8c74a9376c90556d53f744a5f82e3cb73ca9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { LinksCache } from "lib/LinksCache.jsm";
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);
});
});
|