fix to spelling error "instantiated" (#36032)
* fix to spelling error * Update curriculum/challenges/english/06-information-security-and-quality-assurance/advanced-node-and-express/set-up-the-environment.english.md Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>pull/33049/head^2
parent
c49012377b
commit
860cc14894
|
@ -37,7 +37,7 @@ Submit your page when you think you've got it right.
|
|||
tests:
|
||||
- text: Socket.IO is a dependency
|
||||
testString: getUserInput => $.get(getUserInput('url')+ '/_api/package.json') .then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, 'socket.io', 'Your project should list "socket.io" as a dependency'); }, xhr => { throw new Error(xhr.statusText); })
|
||||
- text: Socket.IO has been properly required and instanciated
|
||||
- text: You should correctly require and instantiate <code>socket.io</code> as <code>io</code>.
|
||||
testString: getUserInput => $.get(getUserInput('url')+ '/_api/server.js').then(data => {assert.match(data, /io.*=.*require.*('|")socket.io('|").*http/gi, 'You should correctly require and instantiate socket.io as io.');}, xhr => { throw new Error(xhr.statusText); })
|
||||
- text: Socket.IO should be listening for connections
|
||||
testString: getUserInput => $.get(getUserInput('url')+ '/_api/server.js') .then(data => { assert.match(data, /io.on.*('|")connection('|").*socket/gi, 'io should listen for "connection" and socket should be the 2nd arguments variable'); }, xhr => { throw new Error(xhr.statusText); })
|
||||
|
|
Loading…
Reference in New Issue