[Pkg-javascript-commits] [node-bl] 01/03: Patch tests to use tap and crypto

Jérémy Lal kapouer at moszumanska.debian.org
Sun Dec 4 17:36:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-bl.

commit fa448d9d65a58f54872cb078ccb7192585143cb2
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sun Dec 4 18:34:56 2016 +0100

    Patch tests to use tap and crypto
---
 debian/patches/01-use_tap.patch | 25 +++++++++++++++++++++++++
 debian/patches/series           |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/01-use_tap.patch b/debian/patches/01-use_tap.patch
new file mode 100644
index 0000000..298e435
--- /dev/null
+++ b/debian/patches/01-use_tap.patch
@@ -0,0 +1,25 @@
+Description: port tests to tap and add hash function
+Forwarded: not-needed
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2016-12-04
+--- a/test/test.js
++++ b/test/test.js
+@@ -1,13 +1,16 @@
+-var tape       = require('tape')
++var tape       = require('tap').test
+   , crypto     = require('crypto')
+   , fs         = require('fs')
+-  , hash       = require('hash_file')
+   , BufferList = require('../')
+ 
+   , encodings  =
+       ('hex utf8 utf-8 ascii binary base64'
+           + (process.browser ? '' : ' ucs2 ucs-2 utf16le utf-16le')).split(' ')
+ 
++function hash(buf, alg) {
++	return crypto.createHash(alg).update(buf).digest('hex');
++}
++
+ tape('single bytes from single buffer', function (t) {
+   var bl = new BufferList()
+   bl.append(new Buffer('abcd'))
diff --git a/debian/patches/series b/debian/patches/series
index eef8b66..6d46f5b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-readable_stream.patch
+01-use_tap.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-bl.git



More information about the Pkg-javascript-commits mailing list