mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
11 lines
382 B
TypeScript
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);
|
|
});
|
|
});
|