New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flea-killer

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flea-killer - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

lib/league.js

@@ -20,3 +20,3 @@ // League scraper

if (!validate.season(season)) { return callback('Invalid season.'); }
url = 'http://www.fleaflicker.com/' + leagueType + '/leagues/' + leagueId + '/draft?season=' + season;;
url = 'http://www.fleaflicker.com/' + leagueType + '/leagues/' + leagueId + '?season=' + season;;
};

@@ -23,0 +23,0 @@

{
"name": "flea-killer",
"version": "0.1.2",
"version": "0.1.3",
"description": "Fleaflicker Baseball API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -56,12 +56,12 @@ var expect = require('chai').expect,

it('should grab the correct league information', function(done){
league.get('http://www.fleaflicker.com/mlb/leagues/15317?season=2014', function(err, league){
expect(league.name).to.equal('SOS NL East 2015');
expect(league.commish).to.equal('NextLvlFantasy');
league.get('http://www.fleaflicker.com/mlb/leagues/17027?season=2016', function(err, league){
expect(league.name).to.equal('Reddit-2016-10');
expect(league.commish).to.equal('NextLevelFntsy');
expect(league.type).to.equal('Roto');
expect(league.slots.total).to.equal(14);
expect(league.slots.total).to.equal(12);
// Cant test avail/taken as those slots change and I dont want to mock it
expect(league.id).to.equal(15317);
expect(league.id).to.equal(17027);
// Cant test individual stats that well
// expect(league.teams[0].stats.HR.points).to.equal(14);
// expect(league.teams[0].stats.HR.value).to.equal(4);
// expect(league.teams[0].stats.HR.points).to.equal(7);
// expect(league.teams[0].stats.HR.value).to.equal(30);
done();

@@ -68,0 +68,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc