diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md index d4493dc5f7..022faa88ee 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md @@ -26,8 +26,7 @@ In this exercise we will pass an array and a value to the checkSet() function. Y ```yml tests: - text: checkSet([4, 5, 6], 3) should return [ false, 3 ] - testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3) should return [ false, 3 ]");' - + testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3) should return [ false, 3 ]");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md index e2e7fdc25f..7060446cae 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md @@ -24,7 +24,7 @@ Now you've successfully learned how to use the ES6 Set() object, go ```yml tests: - 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!");' ```