diff options
author | Joseph Frazier <joseph@onsip.com> | 2015-10-04 23:29:28 +0300 |
---|---|---|
committer | Joseph Frazier <joseph@onsip.com> | 2015-10-04 23:31:37 +0300 |
commit | b3055504fffc1990f2d0745655da690ae23ff05b (patch) | |
tree | d23088eba2ff25d03528e6785a16b9629451d06c /test/download-webseed-magnet.js | |
parent | a0d212c8882fb5dbbeabc27b861e79980b6dd52e (diff) |
Use path.resolve in tests
See https://github.com/feross/webtorrent/issues/429#issuecomment-139878312
Diffstat (limited to 'test/download-webseed-magnet.js')
-rw-r--r-- | test/download-webseed-magnet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/download-webseed-magnet.js b/test/download-webseed-magnet.js index 97ec256..ca11b0f 100644 --- a/test/download-webseed-magnet.js +++ b/test/download-webseed-magnet.js @@ -8,10 +8,10 @@ var serveStatic = require('serve-static') var test = require('tape') var WebTorrent = require('../') -var leavesPath = __dirname + '/content/Leaves of Grass by Walt Whitman.epub' +var leavesPath = path.resolve(__dirname, 'content', 'Leaves of Grass by Walt Whitman.epub') var leavesFilename = 'Leaves of Grass by Walt Whitman.epub' var leavesFile = fs.readFileSync(leavesPath) -var leavesTorrent = fs.readFileSync(__dirname + '/torrents/leaves.torrent') +var leavesTorrent = fs.readFileSync(path.resolve(__dirname, 'torrents', 'leaves.torrent')) var leavesParsed = parseTorrent(leavesTorrent) // remove trackers from .torrent file |