2021-04-10 11:43:31 +00:00
|
|
|
'use strict';
|
|
|
|
const util = require('../lib/test-utils.js');
|
|
|
|
|
|
|
|
describe('unexpected failures when calling fs functions (e.g. writeFile) with empty options object, issue773', function() {
|
|
|
|
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
|
|
|
});
|
|
|
|
});
|