From ddce6e642a7a22bb42c332bb1c44469a628d6194 Mon Sep 17 00:00:00 2001 From: Timothy Hsu <31776312+MeatSim@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:18:55 -0600 Subject: [PATCH] Update swapi.dev to swapi.info A correct answer will fail the test because swapi.dev returns a 404. --- src/02-passing-type-arguments/11-data-fetcher.problem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/02-passing-type-arguments/11-data-fetcher.problem.ts b/src/02-passing-type-arguments/11-data-fetcher.problem.ts index a1111ba..130f599 100644 --- a/src/02-passing-type-arguments/11-data-fetcher.problem.ts +++ b/src/02-passing-type-arguments/11-data-fetcher.problem.ts @@ -8,7 +8,7 @@ const fetchData = async (url: string) => { it("Should fetch data from an API", async () => { const data = await fetchData<{ name: string }>( - "https://swapi.dev/api/people/1", + "https://swapi.info/api/people/1", ); expect(data.name).toEqual("Luke Skywalker");