From ee62dd28800ce8abd9b258ff2e1e51fe749fc3f2 Mon Sep 17 00:00:00 2001 From: Romain Durand Date: Mon, 16 Dec 2024 13:55:54 +0100 Subject: [PATCH] Update 11-data-fetcher.problem.ts the swapi.dev api no loger works causing the exercise to be unsolvable --- 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..ed1a55a 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.py4e.com/api/people/1", ); expect(data.name).toEqual("Luke Skywalker");