tastespoon-socket.io
v0.1.0
Published
TasteSpoon (Infrastructure behavior testing framework) plugin for socket.io
Downloads
5
Maintainers
Readme
TasteSpoon-socket.io
TasteSpoon plugin for socket.io. And this is an example of implementing TasteSpoon plugin.
Installation
$ npm install tastespoon tastespoon-socket.io --save-dev
Usage with Mocha
import TasteSpoon from "tastespoon"
import SocketIO from "tastespoon-socket.io"
import assert from "assert"
TasteSpoon.define("socket.io", "127.0.0.1")
let server = TasteSpoon.server("socket.io")
describe(server, () => {
let io = SocketIO("http://example.com:8080")
describe(io, () => {
it("returns connection", (done) => {
return io(server).result().on("connect", () => {
done()
})
})
})
})
$ mocha test/socket_io_test.js
For more information
See TasteSpoon repository.