fix(learn): add test to prevent hardcoded pass (#40179)

This commit is contained in:
Randell Dawson
2020-11-06 09:05:20 -08:00
committed by GitHub
parent ca369b8585
commit 895e6b8daf

View File

@ -42,6 +42,8 @@ tests:
testString: 'assert(checkObj({city: "Seattle"}, "city") === "Seattle");'
- text: '<code>checkObj({city: "Seattle"}, "district")</code> should return <code>"Not Found"</code>.'
testString: 'assert(checkObj({city: "Seattle"}, "district") === "Not Found");'
- text: '<code>checkObj({pet: "kitten", bed: "sleigh"}, "gift")</code> should return <code>"Not Found"</code>.'
testString: 'assert(checkObj({pet: "kitten", bed: "sleigh"}, "gift") === "Not Found");'
```
</section>