8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d19a04 commit 6c8b128Copy full SHA for 6c8b128
test/parallel/test-fs-readfile-empty.js
@@ -35,12 +35,12 @@ fs.readFile(fn, function(err, data) {
35
});
36
37
fs.readFile(fn, 'utf8', function(err, data) {
38
- assert.strictEqual('', data);
+ assert.strictEqual(data, '');
39
40
41
fs.readFile(fn, { encoding: 'utf8' }, function(err, data) {
42
43
44
45
assert.ok(fs.readFileSync(fn));
46
-assert.strictEqual('', fs.readFileSync(fn, 'utf8'));
+assert.strictEqual(fs.readFileSync(fn, 'utf8'), '');