Skip to content

Commit 619ddd6

Browse files
phatedactions-user
authored andcommitted
chore: Run prettier
1 parent 564f87b commit 619ddd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ describe('removeBomStream', function () {
2929
);
3030
});
3131

32-
it('ignores UTF8 buffer without a BOM even if first chunk is shorter than 7 chars but second and subsequent are larger', function(done) {
32+
it('ignores UTF8 buffer without a BOM even if first chunk is shorter than 7 chars but second and subsequent are larger', function (done) {
3333
var filepath = path.join(__dirname, './fixtures/test.txt');
3434
var fileContent = fs.readFileSync(filepath, 'utf-8');
3535

3636
var rmBom = removeBomStream();
3737
var output = '';
38-
rmBom.on('data', function(d) {
38+
rmBom.on('data', function (d) {
3939
output += d.toString();
4040
});
4141
rmBom.write(Buffer.from(fileContent.slice(0, 5)));
@@ -45,7 +45,7 @@ describe('removeBomStream', function () {
4545
done();
4646
});
4747

48-
it('removes the BOM from a UTF8 buffer', function(done) {
48+
it('removes the BOM from a UTF8 buffer', function (done) {
4949
var filepath = path.join(__dirname, './fixtures/bom-utf8.txt');
5050

5151
var expected = fs.readFileSync(filepath).slice(3);
@@ -97,13 +97,13 @@ describe('removeBomStream', function () {
9797
);
9898
});
9999

100-
it('remove the BOM from a UTF8 buffer even if first chunk is shorter than 7 chars but second and subsequent are larger', function(done) {
100+
it('remove the BOM from a UTF8 buffer even if first chunk is shorter than 7 chars but second and subsequent are larger', function (done) {
101101
var filepath = path.join(__dirname, './fixtures/bom-utf8.txt');
102102
var fileContent = fs.readFileSync(filepath, 'utf-8');
103103

104104
var rmBom = removeBomStream();
105105
var output = '';
106-
rmBom.on('data', function(d) {
106+
rmBom.on('data', function (d) {
107107
output += d.toString();
108108
});
109109
rmBom.write(Buffer.from(fileContent.slice(0, 5)));
@@ -113,7 +113,7 @@ describe('removeBomStream', function () {
113113
done();
114114
});
115115

116-
it('does not remove the BOM from a UTF16BE buffer', function(done) {
116+
it('does not remove the BOM from a UTF16BE buffer', function (done) {
117117
var filepath = path.join(__dirname, './fixtures/bom-utf16be.txt');
118118

119119
var expected = fs.readFileSync(filepath);

0 commit comments

Comments
 (0)