[Pkg-javascript-commits] [node-errno] 01/03: fix failing tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun May 7 05:18:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-errno.
commit 3e35b50954569ec44da98686a356e05b3b1c4d7c
Author: Pirate Praveen <praveen at debian.org>
Date: Sun May 7 10:31:31 2017 +0530
fix failing tests
---
debian/patches/fix-tests.patch | 33 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 34 insertions(+)
diff --git a/debian/patches/fix-tests.patch b/debian/patches/fix-tests.patch
new file mode 100644
index 0000000..e23e20e
--- /dev/null
+++ b/debian/patches/fix-tests.patch
@@ -0,0 +1,33 @@
+From 9b1ab1cf9fea5e4bc750b6880172f1a0ad871105 Mon Sep 17 00:00:00 2001
+From: Shanavas M <shanavas at disroot.org>
+Date: Thu, 4 May 2017 14:25:29 +0300
+Subject: [PATCH] Fix failing tests
+
+---
+ test.js | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test.js b/test.js
+index 6b76a85..3a0ef70 100755
+--- a/test.js
++++ b/test.js
+@@ -8,14 +8,14 @@ test('sanity checks', function (t) {
+ t.ok(errno.errno, 'errno.errno not found')
+ t.ok(errno.code, 'errno.code not found')
+
+- t.equal(errno.all.length, 59, 'found ' + errno.all.length + ', expected 59')
+- t.equal(errno.errno['-1'], errno.all[0], 'errno -1 not first element')
++ t.equal(errno.all.length, 60, 'found ' + errno.all.length + ', expected 60')
++ t.equal(errno.errno['-1'], errno.all[1], 'errno -1 not second element')
+
+- t.equal(errno.code['UNKNOWN'], errno.all[0], 'code UNKNOWN not first element')
++ t.equal(errno.code['UNKNOWN'], errno.all[1], 'code UNKNOWN not second element')
+
+- t.equal(errno.errno[1], errno.all[2], 'errno 1 not third element')
++ t.equal(errno.errno[1], errno.all[3], 'errno 1 not fourth element')
+
+- t.equal(errno.code['EOF'], errno.all[2], 'code EOF not third element')
++ t.equal(errno.code['EOF'], errno.all[3], 'code EOF not fourth element')
+ t.end()
+ })
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d04b329
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-errno.git
More information about the Pkg-javascript-commits
mailing list