fix: removed more assert msg arguments (#36439)

This commit is contained in:
Randell Dawson
2019-07-27 21:16:04 -07:00
committed by Parth Parth
parent 80365163de
commit ba6ae7154c
37 changed files with 76 additions and 76 deletions

View File

@ -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

View File

@ -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,'')));
```