Skip to content

Commit 908ea96

Browse files
committed
Replace new Buffer() with Buffer.from()
1 parent 697a49e commit 908ea96

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('gulp-lesshint', () => {
3030
stream.write(new File({
3131
base: __dirname,
3232
path: __dirname + '/fixture.less',
33-
contents: new Buffer(`
33+
contents: Buffer.from(`
3434
.foo{
3535
color: red;
3636
}
@@ -40,7 +40,7 @@ describe('gulp-lesshint', () => {
4040
stream.write(new File({
4141
base: __dirname,
4242
path: __dirname + '/fixture2.less',
43-
contents: new Buffer(`
43+
contents: Buffer.from(`
4444
.foo {
4545
color:red;
4646
}
@@ -63,7 +63,7 @@ describe('gulp-lesshint', () => {
6363

6464
stream.write(new File({
6565
path: __dirname + '/fixture.less',
66-
contents: new Buffer(`
66+
contents: Buffer.from(`
6767
.foo {
6868
color: red;
6969
}
@@ -102,7 +102,7 @@ describe('gulp-lesshint', () => {
102102
lintStream.write(new File({
103103
base: __dirname,
104104
path: __dirname + '/fixture.less',
105-
contents: new Buffer(`
105+
contents: Buffer.from(`
106106
.foo{
107107
color: red;
108108
}
@@ -130,7 +130,7 @@ describe('gulp-lesshint', () => {
130130
stream.write(new File({
131131
base: __dirname,
132132
path: __dirname + '/fixture.less',
133-
contents: new Buffer(`
133+
contents: Buffer.from(`
134134
.foo {
135135
color: red;
136136
}
@@ -165,7 +165,7 @@ describe('gulp-lesshint', () => {
165165
lintStream.write(new File({
166166
base: __dirname,
167167
path: __dirname + '/fixture.less',
168-
contents: new Buffer(`
168+
contents: Buffer.from(`
169169
.foo {
170170
color:red;
171171
}
@@ -191,7 +191,7 @@ describe('gulp-lesshint', () => {
191191
stream.write(new File({
192192
base: __dirname,
193193
path: __dirname + '/fixture.less',
194-
contents: new Buffer(`
194+
contents: Buffer.from(`
195195
.foo {
196196
color: red !important;
197197
}
@@ -235,7 +235,7 @@ describe('gulp-lesshint', () => {
235235
stream.write(new File({
236236
base: __dirname,
237237
path: __dirname + '/exclude.less',
238-
contents: new Buffer(`
238+
contents: Buffer.from(`
239239
.foo{
240240
color: red;
241241
}

0 commit comments

Comments
 (0)