Skip to content

Commit ebd6163

Browse files
committed
fix: use the function parameter instead of a hard coded value in exercise 18
1 parent c34d616 commit ebd6163

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)