Skip to content

Commit

Permalink
add js highlights to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklas766 committed Dec 30, 2017
1 parent 819b7d8 commit aa06606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Expand Up @@ -143,7 +143,7 @@ Instead of me posting lots of code, then please checkout

A test with mocha and sockets can look like this,

```
```js
it('Should create room1 with chat module and have player1 and player2', (done) => {
var client1 = io(socketURL, options);
client1.on('connect', () => {
Expand Down Expand Up @@ -175,7 +175,7 @@ it('Should create room1 with chat module and have player1 and player2', (done) =

Wouldn't it be great if you could remove the following,

```
```js
// var client1 = io(socketURL, options);
// client1.on('connect', () => {
//
Expand Down Expand Up @@ -205,7 +205,7 @@ Wouldn't it be great if you could remove the following,

You can use the `setupRoomTest()` to achieve something like this,

```
```js
it('Should create room1 with chat module and have player1 and player2', (done) => {
const testFunc = (client1, client2) => (done) => {
client2.on('message room1', (messages) => {
Expand Down

0 comments on commit aa06606

Please sign in to comment.