@@ -36,6 +36,7 @@ function testSingle (t, serverType) {
3636
3737 client . on ( 'scrape' , function ( data ) {
3838 t . equal ( data . announce , announceUrl )
39+ t . equal ( data . infoHash , parsedBitlove . infoHash )
3940 t . equal ( typeof data . complete , 'number' )
4041 t . equal ( typeof data . incomplete , 'number' )
4142 t . equal ( typeof data . downloaded , 'number' )
@@ -60,6 +61,7 @@ function clientScrapeStatic (t, serverType) {
6061 Client . scrape ( announceUrl , infoHash1 , function ( err , data ) {
6162 t . error ( err )
6263 t . equal ( data . announce , announceUrl )
64+ t . equal ( data . infoHash , infoHash1 )
6365 t . equal ( typeof data . complete , 'number' )
6466 t . equal ( typeof data . incomplete , 'number' )
6567 t . equal ( typeof data . downloaded , 'number' )
@@ -84,11 +86,13 @@ function clientScrapeMulti (t, serverType) {
8486 t . error ( err )
8587
8688 t . equal ( results [ infoHash1 ] . announce , announceUrl )
89+ t . equal ( results [ infoHash1 ] . infoHash , infoHash1 )
8790 t . equal ( typeof results [ infoHash1 ] . complete , 'number' )
8891 t . equal ( typeof results [ infoHash1 ] . incomplete , 'number' )
8992 t . equal ( typeof results [ infoHash1 ] . downloaded , 'number' )
9093
9194 t . equal ( results [ infoHash2 ] . announce , announceUrl )
95+ t . equal ( results [ infoHash2 ] . infoHash , infoHash2 )
9296 t . equal ( typeof results [ infoHash2 ] . complete , 'number' )
9397 t . equal ( typeof results [ infoHash2 ] . incomplete , 'number' )
9498 t . equal ( typeof results [ infoHash2 ] . downloaded , 'number' )
0 commit comments