Skip to content

Commit e3fad85

Browse files
committed
test: cover mixed-case UTF-8 write aliases
1 parent a6398cc commit e3fad85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-fs-write-file-sync.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ tmpdir.refresh();
122122
// Test writeFileSync with UTF-8 encoding aliases
123123
{
124124
const utf8Data = 'hello world! 中文 — 🚀';
125-
for (const encoding of ['utf8', 'utf-8', 'UTF8', 'UTF-8']) {
125+
for (const encoding of ['utf8', 'utf-8', 'UTF8', 'UTF-8', 'Utf8', 'Utf-8']) {
126126
const file = tmpdir.resolve(`testWriteFileSyncEncoding_${encoding}.txt`);
127127
fs.writeFileSync(file, utf8Data, { encoding });
128128
assert.strictEqual(fs.readFileSync(file, 'utf8'), utf8Data);

0 commit comments

Comments
 (0)