Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added tests for query string #154

Merged
merged 1 commit into from

2 participants

@ysaw

tests for engine-io.cient issue 119

@rauchg rauchg merged commit e027e28 into Automattic:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 11, 2013
  1. @ysaw

    Added tests for query string

    ysaw authored
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/server.js
View
13 test/server.js
@@ -211,6 +211,19 @@ describe('server', function () {
});
});
});
+
+ it('should allow data through query string in uri', function (done) {
+ var engine = listen({ allowUpgrades: false }, function (port) {
+ var socket = new eioc.Socket('ws://localhost:%d?a=b&c=d'.s(port));
+ engine.on('connection', function (conn) {
+ expect(conn.request.query).to.have.keys('transport', 'a');
+ expect(conn.request.query.a).to.be('b');
+ expect(conn.request.query).to.have.keys('transport', 'c');
+ expect(conn.request.query.c).to.be('d');
+ done();
+ });
+ });
+ });
});
describe('close', function () {
Something went wrong with that request. Please try again.