This repository has been archived by the owner on Apr 13, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty url-list correctly (BEP19)
Commit amended by Feross Aboukhadijeh <feross@feross.org>
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var fs = require('fs') | ||
var parseTorrent = require('../') | ||
var test = require('tape') | ||
|
||
var leavesUrlList = fs.readFileSync(__dirname + '/torrents/leaves-empty-url-list.torrent') | ||
|
||
test('parse empty url-list', function (t) { | ||
var torrent = parseTorrent(leavesUrlList) | ||
t.deepEqual(torrent.urlList, []) | ||
t.end() | ||
}) |
Binary file not shown.