File: test_process_versions.patch

package info (click to toggle)
nodejs 22.21.1%2Bdfsg%2B~cs22.19.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 251,932 kB
  • sloc: cpp: 1,542,927; javascript: 597,777; ansic: 114,330; python: 60,784; sh: 4,155; makefile: 2,917; asm: 1,750; pascal: 1,565; perl: 248; lisp: 222; xml: 42
file content (26 lines) | stat: -rw-r--r-- 998 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/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',
@@ -110,7 +110,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);
 }