fix: basic-html-and html5 challenge chinese - test (#35439)

This commit is contained in:
Aditi Joshi
2019-05-02 12:07:41 -04:00
committed by Randell Dawson
parent 74cfbc28e3
commit 325c36cbf8

View File

@ -25,7 +25,8 @@ tests:
testString: 'assert(code.match(/<\/ul>/gi) && code.match(/<ul/gi) && code.match(/<\/ul>/gi).length === code.match(/<ul/gi).length, "Make sure your <code>ul</code> element has a closing tag.");' testString: 'assert(code.match(/<\/ul>/gi) && code.match(/<ul/gi) && code.match(/<\/ul>/gi).length === code.match(/<ul/gi).length, "Make sure your <code>ul</code> element has a closing tag.");'
- text: 确保您的<code>li</code>元素具有结束标记。 - text: 确保您的<code>li</code>元素具有结束标记。
testString: 'assert(code.match(/<\/li>/gi) && code.match(/<li[\s>]/gi) && code.match(/<\/li>/gi).length === code.match(/<li[\s>]/gi).length, "Make sure your <code>li</code> elements have closing tags.");' testString: 'assert(code.match(/<\/li>/gi) && code.match(/<li[\s>]/gi) && code.match(/<\/li>/gi).length === code.match(/<li[\s>]/gi).length, "Make sure your <code>li</code> elements have closing tags.");'
- text: 确保您的<code>li</code>元素不包含任何空字符串或者只有空格。
testString: assert($("ul li").filter((_, item) => !$(item).text().trim()).length === 0, 'Make sure your <code>li</code> elements don\t contain an empty string or only white-space.');
``` ```
</section> </section>