fix(curriculum): update 3 Chinese challenges
This commit is contained in:
parent
1b895e7809
commit
a9092776b5
@ -36,7 +36,7 @@ tests:
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Challenge Seed
|
## Challenge Seed
|
||||||
<section id='challengeSeed'
|
<section id='challengeSeed'>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ socket.emit('chat message', messageToSend);
|
|||||||
tests:
|
tests:
|
||||||
- text: 服务端应监听 <code>'chat message'</code>,且应在监听到后 emit。
|
- text: 服务端应监听 <code>'chat message'</code>,且应在监听到后 emit。
|
||||||
testString: getUserInput => $.get(getUserInput('url')+ '/_api/server.js') .then(data => { assert.match(data, /socket.on.*('|")chat message('|")[^]*io.emit.*('|")chat message('|").*name.*message/gis, 'Your server should listen to the socket for "chat message" then emit to all users "chat message" with name and message in the data object'); }, xhr => { throw new Error(xhr.statusText); })
|
testString: getUserInput => $.get(getUserInput('url')+ '/_api/server.js') .then(data => { assert.match(data, /socket.on.*('|")chat message('|")[^]*io.emit.*('|")chat message('|").*name.*message/gis, 'Your server should listen to the socket for "chat message" then emit to all users "chat message" with name and message in the data object'); }, xhr => { throw new Error(xhr.statusText); })
|
||||||
- text: '客户端应正确处理和展示从 <code>'chat message'</code> 事件发来的新数据。
|
- text: 客户端应正确处理和展示从 <code>'chat message'</code> 事件发来的新数据。
|
||||||
testString: 'getUserInput => $.get(getUserInput(''url'')+ ''/public/client.js'') .then(data => { assert.match(data, /socket.on.*(''|")chat message(''|")[^]*messages.*li/gis, ''You should append a list item to #messages on your client within the "chat message" event listener to display the new message''); }, xhr => { throw new Error(xhr.statusText); })'
|
testString: 'getUserInput => $.get(getUserInput(''url'')+ ''/public/client.js'') .then(data => { assert.match(data, /socket.on.*(''|")chat message(''|")[^]*messages.*li/gis, ''You should append a list item to #messages on your client within the "chat message" event listener to display the new message''); }, xhr => { throw new Error(xhr.statusText); })'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e9a093a74c4063ca6f7c15b
|
id: 5e9a093a74c4063ca6f7c15b
|
||||||
title: Pandas Condtitional Selection and Modifying DataFrames
|
title: Pandas Conditional Selection and Modifying DataFrames
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
isHidden: false
|
isHidden: false
|
||||||
videoId: BFlH0fN5xRQ
|
videoId: BFlH0fN5xRQ
|
Loading…
x
Reference in New Issue
Block a user