Skip to content

Commit 6d29808

Browse files
committed
chore: do not use unsafe buffer constructors
1 parent b4d84d9 commit 6d29808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unixfs-format.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('unixfs-format', () => {
4646
})
4747

4848
it('file', () => {
49-
const data = new UnixFS('file', new Buffer('batata'))
49+
const data = new UnixFS('file', Buffer.from('batata'))
5050
const marshalled = data.marshal()
5151
const unmarshalled = UnixFS.unmarshal(marshalled)
5252
expect(data.type).to.equal(unmarshalled.type)

0 commit comments

Comments
 (0)