mirror of
https://github.com/nodejs/node.git
synced 2025-05-11 06:49:53 +00:00

This commit renames all JavaScript source files in lib to lower snake_case. PR-URL: https://github.com/nodejs/node/pull/19556 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
18 lines
372 B
JavaScript
18 lines
372 B
JavaScript
'use strict';
|
|
// Flags: --expose-internals
|
|
|
|
// This test ensures that search throws errors appropriately
|
|
|
|
const common = require('../common');
|
|
|
|
const { search } = require('internal/modules/esm/default_resolve');
|
|
|
|
common.expectsError(
|
|
() => search('target', undefined),
|
|
{
|
|
code: 'ERR_MISSING_MODULE',
|
|
type: Error,
|
|
message: 'Cannot find module target'
|
|
}
|
|
);
|