reboot alterflixhub
This commit is contained in:
commit
1e84023a44
188 files changed
+31629
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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!" });
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user