node/test/parallel/test-fs-promises-statfs-validate-path.js
Efe b0186ff65c
fs: validate statfs path
PR-URL: https://github.com/nodejs/node/pull/61230
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2026-02-17 15:39:30 +01:00

12 lines
251 B
JavaScript

'use strict';
const common = require('../common');
const fs = require('fs');
const assert = require('assert');
(async () => {
await assert.rejects(
fs.promises.statfs(),
{ code: 'ERR_INVALID_ARG_TYPE' },
);
})().then(common.mustCall());