Skip to content

Commit

Permalink
fix: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkenj1 committed Aug 1, 2024
1 parent 999ac27 commit 201eefc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions libs/metrics/src/l1/l1MetricsService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,43 +79,43 @@ describe("L1MetricsService", () => {
});

describe("l1Tvl", () => {
it("return l1Tvl", () => {
const result = l1MetricsService.l1Tvl();
it("return l1Tvl", async () => {
const result = await l1MetricsService.l1Tvl();
expect(result).toEqual({ ETH: { amount: 1000000, amountUsd: 1000000 } });
});
});

describe("getBatchesInfo", () => {
it("return getBatchesInfo", () => {
const result = l1MetricsService.getBatchesInfo(1);
it("return getBatchesInfo", async () => {
const result = await l1MetricsService.getBatchesInfo(1);
expect(result).toEqual({ commited: 100, verified: 100, proved: 100 });
});
});

describe("tvl", () => {
it("return tvl", () => {
const result = l1MetricsService.tvl(1);
it("return tvl", async () => {
const result = await l1MetricsService.tvl(1);
expect(result).toEqual({ ETH: { amount: 1000000, amountUsd: 1000000 } });
});
});

describe("chainType", () => {
it("return chainType", () => {
const result = l1MetricsService.chainType(1);
it("return chainType", async () => {
const result = await l1MetricsService.chainType(1);
expect(result).toBe("rollup");
});
});

describe("ethGasInfo", () => {
it("return ethGasInfo", () => {
const result = l1MetricsService.ethGasInfo();
it("return ethGasInfo", async () => {
const result = await l1MetricsService.ethGasInfo();
expect(result).toEqual({ gasPrice: 50, ethTransfer: 21000, erc20Transfer: 65000 });
});
});

describe("feeParams", () => {
it("return feeParams", () => {
const result = l1MetricsService.feeParams(1);
it("return feeParams", async () => {
const result = await l1MetricsService.feeParams(1);
expect(result).toEqual({
batchOverheadL1Gas: 50000,
maxPubdataPerBatch: 120000,
Expand Down

0 comments on commit 201eefc

Please sign in to comment.