mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-13 20:32:25 +03:00
Api updates (#7)
* move all instantiation options into the opts hash * 2.0.0
This commit is contained in:
@@ -9,7 +9,7 @@ describe("Main.js", () =>{
|
||||
|
||||
it ('can be bound to the onopen event', (done) => {
|
||||
mockServer = new Server('ws://localhost:8080')
|
||||
Vue.use(VueNativeSock, 'ws://localhost:8080', null)
|
||||
Vue.use(VueNativeSock, 'ws://localhost:8080')
|
||||
let vm = new Vue()
|
||||
vm.$options.sockets.onopen = (data) => {
|
||||
expect(data.type).to.equal('open')
|
||||
|
||||
Reference in New Issue
Block a user