AkurAI Build
Menu

popagent

public

Latest change 6edc7e928c57dab23c0973ed3f7ee70b3ebb72d5 - Initial popagent baseline by AkurAI Build

import { describe, expect, test } from "bun:test";
import { getTime } from "./get-time";

describe("getTime tool", () => {
  test("returns the current time as ISO string", async () => {
    const result = (await getTime.execute!({}, {} as never)) as { now: string };
    expect(new Date(result.now).getTime()).toBeGreaterThan(Date.now() - 5000);
  });
});