[Pkg-javascript-commits] [sockjs-client] 276/350: Fix tests
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 4e147355b16704fab6ef65be4005d449af8e5a8d
Author: Bryce Kahle <bkahle at gmail.com>
Date: Tue Dec 16 16:05:00 2014 -0500
Fix tests
---
tests/lib/main.js | 8 --------
tests/support/sockjs_server.js | 2 +-
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/tests/lib/main.js b/tests/lib/main.js
index 027e1df..0083ae9 100644
--- a/tests/lib/main.js
+++ b/tests/lib/main.js
@@ -30,14 +30,6 @@ describe('SockJS', function() {
});
describe('WebSocket specification step #1', function () {
- it('should throw SyntaxError for an invalid url', function () {
- expect(function () {
- new SockJS('http://');
- }).to.throwException(function (e) {
- expect(e).to.be.a(SyntaxError);
- });
- });
-
it('should throw TypeError for a null url', function () {
expect(function () {
new SockJS();
diff --git a/tests/support/sockjs_server.js b/tests/support/sockjs_server.js
index edfc025..e835809 100644
--- a/tests/support/sockjs_server.js
+++ b/tests/support/sockjs_server.js
@@ -18,7 +18,7 @@ var clientOptions = {
}
};
-var staticDir = new nodeStatic.Server(path.join(__dirname, '../html'));
+var staticDir = new nodeStatic.Server(path.join(__dirname, '../html'), { cache: 0 });
var server = http.createServer();
server.addListener('request', function(req, res) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list