create-torrent
Advanced tools
Comparing version 3.25.1 to 3.25.2
{ | ||
"name": "create-torrent", | ||
"description": "Create .torrent files", | ||
"version": "3.25.1", | ||
"version": "3.25.2", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -6,0 +6,0 @@ "bin": { |
var createTorrent = require('../') | ||
var parseTorrent = require('parse-torrent') | ||
var test = require('tape') | ||
var path = require('path') | ||
@@ -115,6 +116,6 @@ test('implicit torrent name and file name', function (t) { | ||
t.equal(parsedTorrent.files[0].name, 'My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, 'My Cool Torrent/My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, path.join('My Cool Torrent', 'My Cool File 1')) | ||
t.equal(parsedTorrent.files[1].name, 'My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, 'My Cool Torrent/My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, path.join('My Cool Torrent', 'My Cool File 2')) | ||
}) | ||
@@ -159,6 +160,6 @@ }) | ||
t.equal(parsedTorrent.files[0].name, 'My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, 'My Cool Torrent/My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, path.join('My Cool Torrent', 'My Cool File 1')) | ||
t.equal(parsedTorrent.files[1].name, 'My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, 'My Cool Torrent/My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, path.join('My Cool Torrent', 'My Cool File 2')) | ||
}) | ||
@@ -203,7 +204,7 @@ }) | ||
t.equal(parsedTorrent.files[0].name, 'My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, 'My Cool Folder/My Cool File 1') | ||
t.equal(parsedTorrent.files[0].path, path.join('My Cool Folder', 'My Cool File 1')) | ||
t.equal(parsedTorrent.files[1].name, 'My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, 'My Cool Folder/My Cool File 2') | ||
t.equal(parsedTorrent.files[1].path, path.join('My Cool Folder', 'My Cool File 2')) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52840
1131