[Pkg-javascript-commits] [node-express-session] 09/12: Add test_without_after patch
Jérémy Lal
kapouer at moszumanska.debian.org
Fri Jul 25 22:27:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-express-session.
commit 44bd8b40503b688c096ad931fc29e17dad1bdec3
Author: Jérémy Lal <kapouer at melix.org>
Date: Fri Jul 25 23:23:49 2014 +0200
Add test_without_after patch
---
debian/patches/test_without_after.patch | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/debian/patches/test_without_after.patch b/debian/patches/test_without_after.patch
new file mode 100644
index 0000000..7c8ee9c
--- /dev/null
+++ b/debian/patches/test_without_after.patch
@@ -0,0 +1,21 @@
+Description: workaround missing dependency on a trivial piece of code
+Forwarded: not-needed
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2014-07-25
+--- a/test/session.js
++++ b/test/session.js
+@@ -1,7 +1,13 @@
+
+ process.env.NO_DEPRECATION = 'express-session';
+
+-var after = require('after')
++var after = function(n, fn) {
++ var calls = 0;
++ return function(err, result) {
++ if (++calls == n) fn(err, result);
++ }
++};
++
+ var express = require('express')
+ , assert = require('assert')
+ , request = require('supertest')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-express-session.git
More information about the Pkg-javascript-commits
mailing list