emailjs-tcp-socket
Version:
This shim brings the W3C Raw Socket API to node.js and Chromium. Its purpose is to enable apps to use the same api in Firefox OS, Chrome OS, and on the server.
15 lines (14 loc) • 547 B
JavaScript
describe('Websocket tests', () => {
it('should see plaintext data being sent and received', () => {
browser.timeouts('implicit', 60000)
browser.url('http://localhost:12345/')
browser.waitForExist('#plaintext', 50000)
expect(browser.getValue('#plaintext')).to.equal('payload')
})
it('should see TLS data being sent and received', () => {
browser.timeouts('implicit', 60000)
browser.url('http://localhost:12345/')
browser.waitForExist('#tls', 50000)
expect(browser.getValue('#tls')).to.equal('payload')
})
})