fix(learn): function must return boolean, not string. (#39010)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							f967b279a7
						
					
				
				
					commit
					43865fc098
				
			@@ -31,6 +31,8 @@ fruits.indexOf('pears'); // returns 1, the first index at which the element exis
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
tests:
 | 
			
		||||
  - text: The <code>quickCheck</code> function should return a boolean (<code>true</code> or <code>false</code>), not a string (<code>"true"</code> or <code>"false"</code>)
 | 
			
		||||
    testString: assert.isBoolean(quickCheck(['squash', 'onions', 'shallots'], 'mushrooms'));
 | 
			
		||||
  - text: <code>quickCheck(["squash", "onions", "shallots"], "mushrooms")</code> should return <code>false</code>
 | 
			
		||||
    testString: assert.strictEqual(quickCheck(['squash', 'onions', 'shallots'], 'mushrooms'), false);
 | 
			
		||||
  - text: <code>quickCheck(["onions", "squash", "shallots"], "onions")</code> should return <code>true</code>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user