Added </code> to test text (#19498)

This commit is contained in:
greggubarev 2018-10-16 18:28:33 +04:00 committed by Jonathan Grah
parent 49d90f3dde
commit 345dfd6dad

View File

@ -22,7 +22,7 @@ We have defined a function, <code>forecast</code>, that takes an array as an arg
```yml
tests:
- text: '<code>forecast</code> should return <code>["warm", "sunny"]'
testString: 'assert.deepEqual(forecast(["cold", "rainy", "warm", "sunny", "cool", "thunderstorms"]), ["warm", "sunny"], "<code>forecast</code> should return <code>["warm", "sunny"]");'
testString: 'assert.deepEqual(forecast(["cold", "rainy", "warm", "sunny", "cool", "thunderstorms"]), ["warm", "sunny"], "<code>forecast</code> should return <code>["warm", "sunny"]</code>");'
- text: The <code>forecast</code> function should utilize the <code>slice()</code> method
testString: 'assert(/\.slice\(/.test(code), "The <code>forecast</code> function should utilize the <code>slice()</code> method");'