fix(curriculum): return false from has() mock in plant nursery step 17 (#66038)

This commit is contained in:
Fernando Belmonte Archetti
2026-02-25 05:37:30 -03:00
committed by GitHub
parent 90caa8abfe
commit 7d3467b26e
@@ -19,7 +19,7 @@ Your `sellPlants` function should call the `has` method on `catalog`.
let flag = false;
const temp = catalog.has;
try {
catalog.has = (p) => {flag = true}
catalog.has = (p) => {flag = true; return false;}
sellPlants("test", "", 0);
sellPlants(imperialGem, "medium", 200);
assert.isTrue(flag);