11'use strict' ;
22
3- var github , repo , user , testUser , timeout , imageB64 , imageBlob ;
3+ var github , repo , user , testUser , imageB64 , imageBlob ;
44
55if ( typeof window === 'undefined' ) { // We're in NodeJS
66 // Module dependencies
@@ -12,17 +12,12 @@ if (typeof window === 'undefined') { // We're in NodeJS
1212 // Use should flavour for Mocha
1313 var should = chai . should ( ) ;
1414
15- // Long timeouts for Mocha.
16- timeout = 60000 ;
17-
1815 var fs = require ( 'fs' ) ;
1916 var path = require ( 'path' ) ;
2017
2118 imageBlob = fs . readFileSync ( path . join ( __dirname , 'gh.png' ) ) ; // This is a Buffer().
2219 imageB64 = imageBlob . toString ( 'base64' ) ;
2320} else { // We're in the browser
24- timeout = 12000 ; // Shorter timeouts for Karma!
25-
2621 if ( typeof window . _phantom !== 'undefined' ) {
2722 var xhr = new XMLHttpRequest ( ) ;
2823
@@ -50,8 +45,6 @@ if (typeof window === 'undefined') { // We're in NodeJS
5045}
5146
5247describe ( 'Github.Repository' , function ( ) {
53- this . timeout ( timeout ) ; // Bit of a longer timeout
54-
5548 before ( function ( ) {
5649 if ( typeof window !== 'undefined' ) testUser = window . __fixtures__ [ 'test/user' ] ;
5750
@@ -160,8 +153,6 @@ describe('Creating new Github.Repository', function() {
160153
161154 user = github . getUser ( ) ;
162155 repo = github . getRepo ( testUser . USERNAME , repoTest ) ;
163-
164- this . timeout ( timeout ) ;
165156 } ) ;
166157
167158 it ( 'should create repo' , function ( done ) {
0 commit comments