mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): return false from has() mock in plant nursery step 17 (#66038)
This commit is contained in:
committed by
GitHub
parent
90caa8abfe
commit
7d3467b26e
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user