[Pkg-javascript-commits] [node-tap] 18/19: Just use assert deepEqual/deepStrictEqual

Jérémy Lal kapouer at moszumanska.debian.org
Sat Nov 12 01:03:57 UTC 2016


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

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

commit 096a3994a4dc6b9985c36006a69eb4a046a7ca28
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Nov 12 02:02:20 2016 +0100

    Just use assert deepEqual/deepStrictEqual
---
 debian/control                             |  1 -
 debian/patches/use_available_modules.patch | 31 +++++++++++++++++++++---------
 2 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/debian/control b/debian/control
index 99be413..a7281e4 100644
--- a/debian/control
+++ b/debian/control
@@ -38,7 +38,6 @@ Depends:
  , node-signal-exit
  , node-supports-color
  , node-strip-ansi
- , node-deep-equal
  , node-diff
  , node-tmatch
  , node-tap-parser
diff --git a/debian/patches/use_available_modules.patch b/debian/patches/use_available_modules.patch
index e721b6a..79aa63c 100644
--- a/debian/patches/use_available_modules.patch
+++ b/debian/patches/use_available_modules.patch
@@ -5,15 +5,28 @@ Author: Jérémy Lal <kapouer at melix.org>
 Last-Update: 2014-10-20
 --- a/lib/assert.js
 +++ b/lib/assert.js
-@@ -1,6 +1,9 @@
+@@ -1,6 +1,22 @@
  var synonyms = require('./synonyms.js')
 -var deeper = require('deeper') // strict
 -var shallower = require('only-shallow') // in touch with its feelings
-+var deepEqual = require('deep-equal')
++var assert = require('assert')
 +var deeper = function(a, b) {
-+	return deepEqual(a, b, {strict: true});
++	try {
++		assert.deepStrictEqual(a, b);
++	} catch(ex) {
++		return false
++	}
++	return true
 +}
-+var shallower = deepEqual;
++var shallower = function(a, b) {
++  try {
++    assert.deepEqual(a, b);
++  } catch(ex) {
++    return false
++  }
++  return true
++}
++
  var tmatch = require('tmatch') // ok with partial estimates
  
  // Load Buffer the old way for browserify's sake
@@ -63,7 +76,7 @@ Last-Update: 2014-10-20
  
  main()
  
-@@ -397,7 +407,7 @@
+@@ -397,7 +406,7 @@
  function respawnWithCoverage (options) {
    // console.error('respawn with coverage')
    // Re-spawn with coverage
@@ -72,7 +85,7 @@ Last-Update: 2014-10-20
      '--silent',
      options.nycArgs,
      '--',
-@@ -479,7 +489,7 @@
+@@ -479,7 +488,7 @@
      }
    }
  
@@ -81,7 +94,7 @@ Last-Update: 2014-10-20
    // console.error('run coverage report', args)
  
    var child
-@@ -493,7 +503,7 @@
+@@ -493,7 +502,7 @@
      child = fg(node, args)
      if (options.coverageReport === 'lcov' && options.browser) {
        child.on('exit', function () {
@@ -90,7 +103,7 @@ Last-Update: 2014-10-20
        })
      }
    }
-@@ -533,7 +543,7 @@
+@@ -533,7 +542,7 @@
  }
  
  function runCoverageCheck (options, code, signal) {
@@ -99,7 +112,7 @@ Last-Update: 2014-10-20
  
    var child = fg(node, args)
    child.removeAllListeners('close')
-@@ -549,7 +559,7 @@
+@@ -549,7 +558,7 @@
  }
  
  function nycHelp () {

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



More information about the Pkg-javascript-commits mailing list