MCPcopy Index your code
hub / github.com/nodejs/node / expectFsNamespace

Function expectFsNamespace

test/es-module/test-esm-dynamic-import.js:29–35  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

27}
28
29function expectFsNamespace(result) {
30 Promise.resolve(result)
31 .then(common.mustCall((ns) => {
32 assert.strictEqual(typeof ns.default.writeFile, 'function');
33 assert.strictEqual(typeof ns.writeFile, 'function');
34 }));
35}
36
37// For direct use of import expressions inside of CJS or ES modules, including
38// via direct/indirect eval, all kinds of specifiers should work without issue.

Callers 1

Calls 2

thenMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…