Files
web-alterflixhub/app/actions/hello.spec.ts
T
Bkk1234 92a2adad6a refactor: split repo into docs/ mockup/ app/
- move static mockups from resource/ui to mockup/
- move React app scaffold from resource/ui to app/
- move prome.md + images to docs/
- drop empty resource/jsonfile and resource/
- add root .gitignore
- rewrite README for new layout
- fix paths in mockup/index.html (resource/ui -> mockup, docs/prome.md)
2026-10-27 00:55:32 +07:00

18 lines
442 B
TypeScript

import { describe, expect, it } from "vitest";
import action from "./hello";
describe("hello", () => {
it("defaults name to world when omitted", async () => {
const result = await action.run({});
expect(result).toEqual({ message: "Hello, world!" });
});
it("greets the provided name", async () => {
const result = await action.run({ name: "Steve" });
expect(result).toEqual({ message: "Hello, Steve!" });
});
});