2021-04-10 11:43:31 +00:00
|
|
|
'use strict';
|
|
|
|
const util = require('../lib/test-utils.js');
|
|
|
|
|
2021-04-18 15:15:28 +00:00
|
|
|
describe('unexpected failures when calling fs functions (e.g. writeFile) with empty options object, issue 773', function() {
|
2021-04-10 11:43:31 +00:00
|
|
|
beforeEach(util.setup);
|
|
|
|
afterEach(util.cleanup);
|
|
|
|
|
|
|
|
it('should call fs.writeFile with an empty options object', function(done) {
|
|
|
|
const fs = util.fs();
|
2021-04-18 12:08:17 +00:00
|
|
|
fs.writeFile('/a', 'trololol', {}, done);
|
2021-04-10 11:43:31 +00:00
|
|
|
});
|
|
|
|
});
|