diff --git a/curriculum/challenges/english/blocks/workshop-superhero-application-form/680fc849a6f2be0a8597c593.md b/curriculum/challenges/english/blocks/workshop-superhero-application-form/680fc849a6f2be0a8597c593.md index a33a69a0db2..f76fb100596 100644 --- a/curriculum/challenges/english/blocks/workshop-superhero-application-form/680fc849a6f2be0a8597c593.md +++ b/curriculum/challenges/english/blocks/workshop-superhero-application-form/680fc849a6f2be0a8597c593.md @@ -38,7 +38,8 @@ Your `useState` hook for `powerSource` should have an initial value of empty str const _a = eval(script); const _b = await __helpers.prepTestComponent(exports.SuperheroForm); - assert.strictEqual(abuseState.calls[2]?.[0], ""); + const newStateCalls = abuseState.calls.slice(2); + assert.isTrue(newStateCalls.some(call => call[0] === "")); ``` You should use array destructuring to set a `powers` state variable and a `setPowers` setter. @@ -68,9 +69,8 @@ Your `useState` hook for `powers` should have an initial value of empty array. const _a = eval(script); const _b = await __helpers.prepTestComponent(exports.SuperheroForm); - console.log("State calls:", abuseState.calls) - - assert.deepEqual(abuseState.calls[3]?.[0], []); + const newStateCalls = abuseState.calls.slice(2); + assert.isTrue(newStateCalls.some(call => Array.isArray(call[0]) && call[0].length === 0)); ``` # --seed--