Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
eatski committed Apr 5, 2024
1 parent c480536 commit 7cf7fef
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/server/procedures/question/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const testeeRouter = router({
question,
});

describe.each(["A", "B"] as const)("trpc/question abtesting=%s", (ab) => {
describe("trpc/question abtesting=%s", (ab) => {
const testYamlPath = resolve(process.cwd(), "fixtures", "test.yaml");
const TEST_USER1 = {
id: generateId(),
Expand Down Expand Up @@ -49,7 +49,9 @@ describe.each(["A", "B"] as const)("trpc/question abtesting=%s", (ab) => {
getUser: never,
doRevalidate: never,
verifyRecaptcha: () => Promise.resolve(),
getABTestingVariant: () => ab,
getABTestingVariant: () => {
throw new Error("Not implemented");
},
});
describe("質問した内容に対して、結果が返る", () => {
test.concurrent.each([
Expand Down Expand Up @@ -134,7 +136,9 @@ describe.each(["A", "B"] as const)("trpc/question abtesting=%s", (ab) => {
getUser: never,
doRevalidate: never,
verifyRecaptcha: () => Promise.resolve(),
getABTestingVariant: () => ab,
getABTestingVariant: () => {
throw new Error("Not implemented");
},
});
const text = "人を殺しましたか?";
const result = await testee.question({
Expand All @@ -153,7 +157,9 @@ describe.each(["A", "B"] as const)("trpc/question abtesting=%s", (ab) => {
getUser: never,
doRevalidate: never,
verifyRecaptcha: () => Promise.resolve(),
getABTestingVariant: () => ab,
getABTestingVariant: () => {
throw new Error("Not implemented");
},
});
const text = "人を殺しましたか?";
expect(
Expand All @@ -171,7 +177,9 @@ describe.each(["A", "B"] as const)("trpc/question abtesting=%s", (ab) => {
getUser: never,
doRevalidate: never,
verifyRecaptcha: () => Promise.resolve(),
getABTestingVariant: () => ab,
getABTestingVariant: () => {
throw new Error("Not implemented");
},
});
const text = "人を殺しましたか?";
const result = await testee.question({
Expand Down

0 comments on commit 7cf7fef

Please sign in to comment.