Skip to content

Commit 0628fc9

Browse files
authored
Merge pull request total-typescript#22 from arnaudNYC/main
fix: use the function parameter instead of a hard coded value
2 parents c34d616 + ebd6163 commit 0628fc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/18-function-types-with-promises.problem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ it("Should create the user, then get them", async () => {
2222
const user = await createThenGetUser(
2323
async () => "123",
2424
async (id) => ({
25-
id: "123",
25+
id,
2626
firstName: "Matt",
2727
lastName: "Pocock",
2828
}),

src/18-function-types-with-promises.solution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ it("Should create the user, then get them", async () => {
2222
const user = await createThenGetUser(
2323
async () => "123",
2424
async (id) => ({
25-
id: "123",
25+
id,
2626
firstName: "Matt",
2727
lastName: "Pocock",
2828
}),

0 commit comments

Comments
 (0)