Skip to content

Commit 3e6ffb1

Browse files
authored
Merge pull request #33 from ipfs/remove-deprecated-buffer-creation
chore: do not use unsafe buffer constructors
2 parents b4d84d9 + 6d29808 commit 3e6ffb1

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)