Skip to content

Commit

Permalink
chore: Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored and actions-user committed Apr 18, 2022
1 parent 2107f34 commit fca6c3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -7,7 +7,7 @@ var BOM = '\ufeff';

function removeBomStream(encoding) {
encoding = (encoding || '').toLowerCase();
var isUTF8 = (encoding === 'utf-8' || encoding === 'utf8');
var isUTF8 = encoding === 'utf-8' || encoding === 'utf8';

// Needed due to https://github.com/nodejs/node/pull/42779
if (!isUTF8) {
Expand Down
18 changes: 15 additions & 3 deletions test/index.js
Expand Up @@ -123,7 +123,11 @@ describe('removeBomStream', function () {
}

pipe(
[fs.createReadStream(filepath), removeBomStream('utf-16be'), concat(assert)],
[
fs.createReadStream(filepath),
removeBomStream('utf-16be'),
concat(assert),
],
done
);
});
Expand All @@ -138,7 +142,11 @@ describe('removeBomStream', function () {
}

pipe(
[fs.createReadStream(filepath), removeBomStream('utf-16be'), concat(assert)],
[
fs.createReadStream(filepath),
removeBomStream('utf-16be'),
concat(assert),
],
done
);
});
Expand All @@ -153,7 +161,11 @@ describe('removeBomStream', function () {
}

pipe(
[fs.createReadStream(filepath), removeBomStream('utf-16le'), concat(assert)],
[
fs.createReadStream(filepath),
removeBomStream('utf-16le'),
concat(assert),
],
done
);
});
Expand Down

0 comments on commit fca6c3c

Please sign in to comment.