Skip to content

Commit

Permalink
Fix GET /lens/rate test case to use proper profile ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Oct 4, 2024
1 parent 8f29b62 commit ab0d9d5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions apps/api/tests/lens/rate.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import axios from "axios";
import { TEST_URL } from "src/helpers/constants";
import { describe, expect, test } from "vitest";

describe("GET /lens/rate", () => {
test("should return 200 and valid rate and structure", async () => {
const { data, status } = await axios.get(`${TEST_URL}/lens/rate`);

expect(status).toBe(200);
expect(data.result).toEqual(
expect.arrayContaining([
expect.objectContaining({
address: expect.any(String),
decimals: expect.any(Number),
fiat: expect.any(Number),
name: expect.any(String),
symbol: expect.any(String)
})
])
);
});
});

0 comments on commit ab0d9d5

Please sign in to comment.