xref: /third_party/node/test/fixtures/module-require-symlink/symlinked.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/module-require-symlink/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst assert = require('assert');
31cb0ef41Sopenharmony_ciconst path = require('path');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciconst foo = require('./foo');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciconst linkScriptEnding = path.join('module-require-symlink', 'symlinked.js');
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciassert.strictEqual(foo.dep1.bar.version, 'CORRECT_VERSION');
101cb0ef41Sopenharmony_ciassert.strictEqual(foo.dep2.bar.version, 'CORRECT_VERSION');
111cb0ef41Sopenharmony_ciassert(__filename.endsWith(linkScriptEnding));
121cb0ef41Sopenharmony_ciassert(__filename in require.cache);
13

Indexes created Thu Nov 07 10:32:03 CST 2024