11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_cirequire('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ciconst { promises: fs } = require('fs'); 61cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ciconst fn = fixtures.path('empty.txt'); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_cifs.readFile(fn) 111cb0ef41Sopenharmony_ci .then(assert.ok); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_cifs.readFile(fn, 'utf8') 141cb0ef41Sopenharmony_ci .then(assert.strictEqual.bind(this, '')); 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_cifs.readFile(fn, { encoding: 'utf8' }) 171cb0ef41Sopenharmony_ci .then(assert.strictEqual.bind(this, '')); 18