[Pkg-javascript-commits] [node-class-utils] 05/08: Patch test to loosen dependency on node >= 6

Jérémy Lal kapouer at moszumanska.debian.org
Fri Dec 29 18:08:26 UTC 2017


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

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

commit 64ab5bc54d81d0026ec6d3455a6f194e0df8eb7a
Author: Jérémy Lal <kapouer at melix.org>
Date:   Fri Dec 29 19:04:06 2017 +0100

    Patch test to loosen dependency on node >= 6
---
 debian/patches/fix-test-node8.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/debian/patches/fix-test-node8.patch b/debian/patches/fix-test-node8.patch
new file mode 100644
index 0000000..3d9fa25
--- /dev/null
+++ b/debian/patches/fix-test-node8.patch
@@ -0,0 +1,16 @@
+Description: Test assumes 'caller' is a class constructor key
+ In nodejs 8 it isn't.
+Forwarded: https://github.com/jonschlinkert/class-utils/issues/4
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2017-12-29
+--- a/test.js
++++ b/test.js
+@@ -201,7 +201,7 @@
+     assert.hasAll(cu.nativeKeys(function() {}), ['length', 'name', 'prototype']);
+     assert.hasAll(cu.nativeKeys(App), ['length', 'name', 'prototype']);
+     assert.hasAll(cu.nativeKeys(App.prototype), ['constructor', 'set', 'get', 'del']);
+-    assert.hasAll(cu.nativeKeys(App.constructor), ['length', 'name', 'caller']);
++    assert.hasAll(cu.nativeKeys(App.constructor), ['length', 'name']);
+     assert.hasAll(cu.nativeKeys(App.prototype.constructor), ['length', 'caller']);
+     assert.hasAll(cu.nativeKeys(new App()), ['options']);
+     assert.hasAll(cu.nativeKeys(Object.create(new App())), []);

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



More information about the Pkg-javascript-commits mailing list