Skip to content
Browse files

Moved the common header outside of the tests files

  • Loading branch information...
1 parent 79b6e01 commit 4870f2fabb0ed9239da9c76a0b69f905758f8eb6 @carlosvillu committed
Showing with 18 additions and 6 deletions.
  1. +12 −1 lib/dribbble.js
  2. +5 −0 test/common.js
  3. +1 −5 test/test-client.js
View
13 lib/dribbble.js
@@ -102,4 +102,15 @@ dribbble.player_following = function(id, callback){}
//
// This function Returns the list of players drafted by the player specified by :id.
//
-dribbble.player_draftees = function(id, callback){}
+dribbble.player_draftees = function(id, callback){}
+
+
+
+/// ----------------------- PRIVATE FUNCTIONS -----------------
+
+
+
+//
+//
+//
+var getJSON = function(){}
View
5 test/common.js
@@ -0,0 +1,5 @@
+global.vows = require('vows'),
+global.assert = require('assert'),
+global.sys = require('sys');
+
+global.dribbble = require('./../lib/dribbble');
View
6 test/test-client.js
@@ -1,8 +1,4 @@
-var vows = require('vows'),
- assert = require('assert'),
- sys = require('sys');
-
-var dribbble = require('./../lib/dribbble');
+require('./common');
// Suite for testing the client.
var client_suite = vows.describe("Basic tests for Dribbble´s client");

0 comments on commit 4870f2f

Please sign in to comment.
Something went wrong with that request. Please try again.