ts-ci/test/myFunction.test.ts
2023-05-21 13:57:34 +02:00

11 lines
382 B
TypeScript

import { describe, it, expect } from "vitest";
import { myFunction } from "../src/myFunction";
describe("Test myFunction", () => {
it("Should return the correct value", async () => {
expect(myFunction()).toStrictEqual(["a", "b", "c"]);
});
it("should return the correct number of element", async () => {
expect(myFunction().length).toBe(3);
});
});