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>
12 lines
251 B
JavaScript
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());
|