|
1 | 1 | import { describe, expect, it } from "bun:test";
|
2 | 2 | import { crawlExtension } from "../chrome-crawler";
|
| 3 | +import { numberOfDFGCompiles } from "bun:jsc"; |
3 | 4 |
|
4 | 5 | const githubBetterLineCountsId = "ocfdgncpifmegplaglcnglhioflaimkd";
|
5 | 6 |
|
6 | 7 | describe("Chrome Web Store Crawler", () => {
|
7 | 8 | it("should load and crawl an extension ID correctly", async () => {
|
8 | 9 | const res = await crawlExtension(githubBetterLineCountsId, "en");
|
9 | 10 |
|
10 |
| - expect(res).toMatchSnapshot(); |
| 11 | + expect(res).toEqual({ |
| 12 | + iconUrl: |
| 13 | + "https://lh3.googleusercontent.com/GcffNyCJaxT2G9dsQCJHhUEMlu_E0vEzph5cLPrQj7UHKat7QyCzGu69Dmp_DDUL8rY-bPMFJceQarS1wcqdwTalTg=s256", |
| 14 | + id: githubBetterLineCountsId, |
| 15 | + lastUpdated: expect.any(String), |
| 16 | + longDescription: expect.stringContaining("Isn't it annoying when you"), |
| 17 | + name: "GitHub: Better Line Counts", |
| 18 | + rating: expect.any(Number), |
| 19 | + reviewCount: expect.any(Number), |
| 20 | + shortDescription: "Remove generated files from GitHub line counts", |
| 21 | + storeUrl: |
| 22 | + "https://chromewebstore.google.com/detail/github-better-line-counts/ocfdgncpifmegplaglcnglhioflaimkd", |
| 23 | + version: expect.any(String), |
| 24 | + weeklyActiveUsers: expect.any(Number), |
| 25 | + }); |
11 | 26 | });
|
12 | 27 | });
|
0 commit comments