revert: some changes from #18842 breaking tests

This commit is contained in:
Mrugesh Mohapatra
2018-10-25 14:22:31 +05:30
committed by mrugesh mohapatra
parent 5beece7d8c
commit e1335d774b
2 changed files with 2 additions and 3 deletions

View File

@ -26,8 +26,7 @@ In this exercise we will pass an array and a value to the checkSet() function. Y
```yml ```yml
tests: tests:
- text: <code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ] - text: <code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ]
testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "<code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ]");' testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "<code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ]");'
``` ```
</section> </section>

View File

@ -24,7 +24,7 @@ Now you've successfully learned how to use the ES6 <code>Set()</code> object, go
```yml ```yml
tests: tests:
- text: Your Set was returned correctly! - text: Your Set was returned correctly!
testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");' testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
``` ```