// The token names and URLs in src/shared/tokenList.js are written from // script/lib/token-enrichment.json by script/lib/apply-enrichment.js // (`make apply-enrichment`). This fails when the committed list differs from // what the script writes from the committed data, and when the data or the // script's table of websites has an address that no entry in the list matches. const fs = require("fs"); const path = require("path"); const enrichment = require("../script/lib/token-enrichment.json"); const { applyEnrichment } = require("../script/lib/apply-enrichment"); test("src/shared/tokenList.js is what make apply-enrichment writes from the committed data", () => { const committed = fs.readFileSync( path.join(__dirname, "..", "src/shared/tokenList.js"), "utf8", ); expect(applyEnrichment(committed, enrichment)).toBe(committed); });