summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/test/unit/lib/LinksCache.test.js
blob: 8a4d33d2f2ec022d399ec662f5c2767b5d8989cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
  });
});