Skip to content

Commit

Permalink
fix: better ready assertion message, close #10
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Mar 27, 2019
1 parent 7831609 commit c25edb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support.js
Expand Up @@ -3,7 +3,8 @@
const ws = new WebSocket('ws://localhost:8765')

beforeEach(() => {
expect(ws.readyState).to.equal(WebSocket.OPEN)
assert(ws.readyState === WebSocket.OPEN, 'Watch & Reload is ready')

ws.onmessage = ev => {
console.log('message from OS')
console.log(ev)
Expand Down

0 comments on commit c25edb5

Please sign in to comment.