Skip to content

Commit

Permalink
fix: tests (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown authored Jan 31, 2023
1 parent 6a09f70 commit 87eb03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test('verify info-hash an additional source attribute set on the info dict (a wa

// Source is now being read as a Buffer,
// if 'parse-torrent' is updated this test will still pass
t.equal(parsedTorrent.info.source.toString(), 'SOURCE', 'info.source=\'SOURCE\'')
t.equal(Buffer.from(parsedTorrent.info.source).toString(), 'SOURCE', 'info.source=\'SOURCE\'')

t.deepEqual(parsedTorrent.announce, ['http://private.tracker.org/'], 'single private announce url')

Expand Down
2 changes: 1 addition & 1 deletion test/ssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createTorrent from '../index.js'
test('create ssl cert torrent', t => {
t.plan(2)

const sslCert = Buffer.from('content cert X.509')
const sslCert = new Uint8Array(Buffer.from('content cert X.509'))

createTorrent(Buffer.from('abc'), {
name: 'abc.txt',
Expand Down

0 comments on commit 87eb03e

Please sign in to comment.