File: 0002-Disable-some-test-due-to-newer-node.patch

package info (click to toggle)
node-stack-utils 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 236 kB
  • sloc: makefile: 14; sh: 12
file content (52 lines) | stat: -rw-r--r-- 1,609 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From d6e40de9b8a7843a253823e0472821463e5c67ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Tue, 5 Jun 2018 23:16:03 +0200
Subject: Disable some test due to newer node

Forwarded: https://github.com/tapjs/stack-utils/issues/37
bug: https://github.com/tapjs/stack-utils/issues/37
---
 test/at.js   | 2 ++
 test/test.js | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/at.js b/test/at.js
index 77a0a05..d0090b6 100644
--- a/test/at.js
+++ b/test/at.js
@@ -10,6 +10,7 @@ var base = __filename.substr(process.cwd().length + 1)
 t.match(stack.at(), { line: Number, column: Number, file: base })
 
 // a capture from a native site
+/*
 var arr = [ 0 ]
 var captures = arr.map(function xyz (n) {
   return stack.at(xyz)
@@ -18,3 +19,4 @@ t.match(captures, [ {
   type: 'Array',
   function: 'map'
 } ])
+*/
\ No newline at end of file
diff --git a/test/test.js b/test/test.js
index 58d29a5..340174f 100644
--- a/test/test.js
+++ b/test/test.js
@@ -176,7 +176,7 @@ t.test('captureString: two redirects', function (t) {
   ]));
   t.end()
 });
-
+/*
 t.test('captureString: with startStack function', function (t) {
   var stack = new StackUtils({internals: internals(), cwd: utils.fixtureDir});
   var capture = new CaptureFixture(stack);
@@ -188,7 +188,7 @@ t.test('captureString: with startStack function', function (t) {
   ]));
   t.end()
 });
-
+*/
 t.test('captureString: with limit', function (t) {
   var stack = new StackUtils({internals: internals(), cwd: utils.fixtureDir});
   var capture = new CaptureFixture(stack);