diff --git a/doc/api/esm.md b/doc/api/esm.md index c4bed1c690df2d..6b6b964acbe0fd 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1091,7 +1091,7 @@ async function getPackageType(url) { // required by the spec // this simple truthy check for whether `url` contains a file extension will // work for most projects but does not cover some edge-cases (such as - // extension-less files or a url ending in a trailing space) + // extensionless files or a url ending in a trailing space) const isFilePath = !!extname(url); // If it is a file path, get the directory it's in const dir = isFilePath ? diff --git a/test/es-module/test-esm-unknown-or-no-extension.js b/test/es-module/test-esm-unknown-or-no-extension.js index c43fa16d658bdc..40f840ad670cf3 100644 --- a/test/es-module/test-esm-unknown-or-no-extension.js +++ b/test/es-module/test-esm-unknown-or-no-extension.js @@ -34,7 +34,7 @@ const assert = require('assert'); assert.ok(stderr.includes('ERR_UNKNOWN_FILE_EXTENSION')); if (fixturePath.includes('noext')) { // Check for explanation to users - assert.ok(stderr.includes('Extension-less')); + assert.ok(stderr.includes('extensionless')); } })); });