TypeError: Cannot read property 'type' of undefined
at /Users/balaji/Downloads/github-scraper-master/github-scraper/test/followers.test.js:7:18
at /Users/balaji/Downloads/github-scraper-master/github-scraper/lib/switcher.js:9:2215
at ClientRequest. (/Users/balaji/Downloads/github-scraper-master/github-scraper/lib/http_request.js:9:991)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:640:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at TLSSocket.socketOnData (_http_client.js:509:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)
I am getting following error. and kindly give me steps to run.
read list of followers for @jupiter (single page of followers)
============================================================================= Writing coverage object [/Users/balaji/Downloads/github-scraper-master/github-scraper/coverage/coverage.json] Writing coverage reports at [/Users/balaji/Downloads/github-scraper-master/github-scraper/coverage]
/Users/balaji/Downloads/github-scraper-master/github-scraper/test/followers.test.js:7 t.equal(data.type, 'followers', username + ' data.type: ' + data.type); ^
TypeError: Cannot read property 'type' of undefined at /Users/balaji/Downloads/github-scraper-master/github-scraper/test/followers.test.js:7:18 at /Users/balaji/Downloads/github-scraper-master/github-scraper/lib/switcher.js:9:2215 at ClientRequest. (/Users/balaji/Downloads/github-scraper-master/github-scraper/lib/http_request.js:9:991)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:640:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at TLSSocket.socketOnData (_http_client.js:509:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)