We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4d84d9 + 6d29808 commit 3e6ffb1Copy full SHA for 3e6ffb1
test/unixfs-format.spec.js
@@ -46,7 +46,7 @@ describe('unixfs-format', () => {
46
})
47
48
it('file', () => {
49
- const data = new UnixFS('file', new Buffer('batata'))
+ const data = new UnixFS('file', Buffer.from('batata'))
50
const marshalled = data.marshal()
51
const unmarshalled = UnixFS.unmarshal(marshalled)
52
expect(data.type).to.equal(unmarshalled.type)
0 commit comments