[Pkg-javascript-commits] [node-string-decoder] 26/27: Fix testsuite
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 11 15:12:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-string-decoder.
commit 5e26de0c47720baf3e7378dcaf99421709f39e6f
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu May 11 17:01:31 2017 +0200
Fix testsuite
---
debian/patches/fixtestsuite.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/fixtestsuite.patch b/debian/patches/fixtestsuite.patch
new file mode 100644
index 0000000..c86c3c4
--- /dev/null
+++ b/debian/patches/fixtestsuite.patch
@@ -0,0 +1,25 @@
+Subject: Fix testsuite
+
+Do not run leak testsuite that need polyfill
+
+Forwarded: no
+author: Bastien Roucariès <rouca at debian.org>
+
+Index: node-string-decoder/test/common.js
+===================================================================
+--- node-string-decoder.orig/test/common.js
++++ node-string-decoder/test/common.js
+@@ -1,4 +1,4 @@
+-require('babel-polyfill'); /* eslint-disable required-modules */
++//require('babel-polyfill'); /* eslint-disable required-modules */
+ 'use strict';
+ var path = require('path');
+ var fs = require('fs');
+@@ -331,6 +331,7 @@ if (global.__coverage__) knownGlobals.pu
+
+ function leakedGlobals() {
+ var leaked = [];
++ return leaked;
+
+ for (var val in global) {
+ if (!knownGlobals.includes(global[val])) leaked.push(val);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..05107a7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fixtestsuite.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-string-decoder.git
More information about the Pkg-javascript-commits
mailing list