File: test_process_versions.patch

package info (click to toggle)
nodejs 20.19.5%2Bdfsg%2B~cs20.19.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216,800 kB
  • sloc: cpp: 1,232,365; javascript: 567,180; ansic: 118,421; python: 58,546; sh: 3,870; makefile: 2,744; asm: 1,732; perl: 248; lisp: 222; xml: 42
file content (26 lines) | stat: -rw-r--r-- 1,000 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
Description: Use system paths for builtins
Last-Update: 2023-02-22
Forwarded: not-needed
Author: Jérémy Lal <kapouer@melix.org>
--- a/test/parallel/test-process-versions.js
+++ b/test/parallel/test-process-versions.js
@@ -3,8 +3,8 @@
 const assert = require('assert');
 
 // Import of pure js (non-shared) deps for comparison
-const acorn = require('../../deps/acorn/acorn/package.json');
-const cjs_module_lexer = require('../../deps/cjs-module-lexer/src/package.json');
+const acorn = require('/usr/share/nodejs/acorn/package.json');
+const cjs_module_lexer = require('/usr/share/nodejs/cjs-module-lexer/package.json');
 
 const expected_keys = [
   'ares',
@@ -97,7 +97,7 @@
                    process.versions.napi);
 
 if (hasUndici) {
-  const undici = require('../../deps/undici/src/package.json');
+  const undici = require('/usr/share/nodejs/undici/package.json');
   const expectedUndiciVersion = undici.version;
   assert.strictEqual(process.versions.undici, expectedUndiciVersion);
 }