UNPKG

yahoo-fantasy

Version:

An API to help facilitate the use of the Yahoo! Fantasy Sports API in NodeJS projects.

16 lines (11 loc) 326 B
var YahooFantasy = require('../index.js'); var nock = require('nock'); describe ("collection: leaguesCollection", function(){ var yf = new YahooFantasy( 'Y!APPLICATION_KEY', 'Y!APPLICATION_SECRET') , leagues = yf.leagues; it ("should be defined", function() { expect(leagues).not.toBe(null); }); });