fix: removed more assert msg arguments (#36439)
This commit is contained in:
		
				
					committed by
					
						 Parth Parth
						Parth Parth
					
				
			
			
				
	
			
			
			
						parent
						
							80365163de
						
					
				
				
					commit
					ba6ae7154c
				
			| @@ -26,7 +26,7 @@ If <code>prop</code> does not correspond to any valid properties of a contact fo | ||||
| ```yml | ||||
| tests: | ||||
|   - text: <code>"Kristian", "lastName"</code> should return <code>"Vos"</code> | ||||
|     testString: assert(lookUpProfile('Kristian','lastName') === "Vos", '<code>"Kristian", "lastName"</code> should return <code>"Vos"</code>'); | ||||
|     testString: assert(lookUpProfile('Kristian','lastName') === "Vos"); | ||||
|   - text: <code>"Sherlock", "likes"</code> should return <code>["Intriguing Cases", "Violin"]</code> | ||||
|     testString: assert.deepEqual(lookUpProfile("Sherlock", "likes"), ["Intriguing Cases", "Violin"]); | ||||
|   - text: <code>"Harry","likes"</code> should return an array | ||||
|   | ||||
| @@ -57,7 +57,7 @@ tests: | ||||
|   - text: You should not modify the <code>return</code> statement | ||||
|     testString: assert(code.match(/return\sresult;/)); | ||||
|   - text: You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements | ||||
|     testString: assert(!/case|switch|if/g.test(code.replace(/([/]{2}.*)|([/][*][^/*]*[*][/])/g,'')), 'You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements'); | ||||
|     testString: assert(!/case|switch|if/g.test(code.replace(/([/]{2}.*)|([/][*][^/*]*[*][/])/g,''))); | ||||
|  | ||||
| ``` | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user