[Pkg-javascript-commits] [node-chai] 01/02: Remove unnecessary patch
Sruthi Chandran
srud-guest at moszumanska.debian.org
Thu Oct 26 17:30:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
srud-guest pushed a commit to branch master
in repository node-chai.
commit 974cdf34b952b3b367934c139d96c2761d9e8b7f
Author: Sruthi Chandran <srud at disroot.org>
Date: Thu Oct 26 22:34:37 2017 +0530
Remove unnecessary patch
---
debian/patches/port-to-type-detect-4.0.patch | 35 ----------------------------
debian/patches/series | 1 -
2 files changed, 36 deletions(-)
diff --git a/debian/patches/port-to-type-detect-4.0.patch b/debian/patches/port-to-type-detect-4.0.patch
deleted file mode 100644
index 39ee45c..0000000
--- a/debian/patches/port-to-type-detect-4.0.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-commit d3434bb5e649d1581b53cf3ce7242b0a8ceae1d4
-Author: Shanavas M <shanavas at disroot.org>
-Date: Fri Nov 4 13:35:31 2016 +0000
-
- Use type-detect at 1.0.0 like object type names
-
-diff --git a/lib/chai/utils/expectTypes.js b/lib/chai/utils/expectTypes.js
-index 4dd5b29..eec10b3 100644
---- a/lib/chai/utils/expectTypes.js
-+++ b/lib/chai/utils/expectTypes.js
-@@ -34,7 +34,7 @@ module.exports = function (obj, types) {
- return or + art + ' ' + t;
- }).join(', ');
-
-- if (!types.some(function (expected) { return type(obj) === expected; })) {
-+ if (!types.some(function (expected) { return type(obj).toLowerCase() === expected; })) {
- throw new AssertionError(
- 'object tested must be ' + str + ', but ' + type(obj) + ' given'
- );
-diff --git a/lib/chai/utils/index.js b/lib/chai/utils/index.js
-index 3f9bf6e..be87fb7 100644
---- a/lib/chai/utils/index.js
-+++ b/lib/chai/utils/index.js
-@@ -20,7 +20,10 @@ exports.test = require('./test');
- * type utility
- */
-
--exports.type = require('type-detect');
-+var type = require('type-detect');
-+exports.type = function (obj) {
-+ return type(obj).toLowerCase();
-+};
-
- /*!
- * expectTypes utility
diff --git a/debian/patches/series b/debian/patches/series
index 24bce48..024cf65 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
remove-npm-install.patch
-port-to-type-detect-4.0.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-chai.git
More information about the Pkg-javascript-commits
mailing list