11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci// Fixes regression from v4 31cb0ef41Sopenharmony_cirequire('../common'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 61cb0ef41Sopenharmony_ciconst path = require('path'); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ciconst fixturesRequire = require( 91cb0ef41Sopenharmony_ci fixtures.path('module-extension-over-directory', 'inner')); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciassert.strictEqual( 121cb0ef41Sopenharmony_ci fixturesRequire, 131cb0ef41Sopenharmony_ci require(fixtures.path('module-extension-over-directory', 'inner.js')), 141cb0ef41Sopenharmony_ci 'test-require-extension-over-directory failed to import fixture' + 151cb0ef41Sopenharmony_ci ' requirements' 161cb0ef41Sopenharmony_ci); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ciconst fakePath = [ 191cb0ef41Sopenharmony_ci fixtures.path('module-extension-over-directory', 'inner'), 201cb0ef41Sopenharmony_ci 'fake', 211cb0ef41Sopenharmony_ci '..', 221cb0ef41Sopenharmony_ci].join(path.sep); 231cb0ef41Sopenharmony_ciconst fixturesRequireDir = require(fakePath); 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ciassert.strictEqual( 261cb0ef41Sopenharmony_ci fixturesRequireDir, 271cb0ef41Sopenharmony_ci require(fixtures.path('module-extension-over-directory', 'inner/')), 281cb0ef41Sopenharmony_ci 'test-require-extension-over-directory failed to import fixture' + 291cb0ef41Sopenharmony_ci ' requirements' 301cb0ef41Sopenharmony_ci); 31