test5.ts

Test 5: Test Market Cap Data Retrieval

import { fetchMarketcap } from "../src/interactAgent";
import assert from "assert";

describe("Market Cap Data Tests", () => {
  it("should fetch market cap data successfully", async () => {
    const term = "TestToken";
    const count = 5;

    const data = await fetchMarketcap(term, count);
    assert.ok(data.length > 0);
    assert.ok(data[0].marketCap);
  });
});

Last updated