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

Function validateEnumerability

test/parallel/test-fs-stat-date.mjs:46–50  ·  view source on GitHub ↗
(stats)

Source from the content-addressed store, hash-verified

44
45// Ensure that accessed atime and mtime are enumerable
46function validateEnumerability(stats) {
47 const keys = Object.keys(stats);
48 assert.ok(keys.includes('atime'));
49 assert.ok(keys.includes('mtime'));
50}
51
52async function runTest(atime, mtime, margin = 0) {
53 margin += Number.EPSILON;

Callers 1

runTestFunction · 0.70

Calls 3

includesMethod · 0.80
keysMethod · 0.65
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…