doublescore
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -48,3 +48,3 @@ 'use strict'; | ||
} else if ( arguments.length > 1 ) { | ||
cb( null, data ); | ||
cb.apply( {}, arguments ); | ||
} else { | ||
@@ -51,0 +51,0 @@ cb( null ); |
@@ -5,3 +5,3 @@ { | ||
"author": "Anthony Hildoer <anthony@bluerival.com>", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -20,2 +20,5 @@ 'use strict'; | ||
cb( null, 200, 300, 400 ); | ||
assert.strictEqual( args, 4 ); | ||
cb( false, 200 ); | ||
@@ -33,2 +36,5 @@ assert.strictEqual( args, 2 ); | ||
cb( new Error( 'hi' ), 200, 300, 400 ); | ||
assert.strictEqual( args, 1 ); | ||
cb( new Error( 'hi' ) ); | ||
@@ -35,0 +41,0 @@ assert.strictEqual( args, 1 ); |
@@ -8,3 +8,3 @@ "use strict"; | ||
describe( 'timer', function() { | ||
it( 'should measure time delta with <= 0.1% error', function( done ) { | ||
it( 'should measure time delta with <= 0.5% error', function( done ) { | ||
@@ -23,3 +23,3 @@ var timer = __.timer(); | ||
try { | ||
assert( errorRate <= 0.1 ); | ||
assert( errorRate <= 0.5 ); | ||
done(); | ||
@@ -36,3 +36,3 @@ } catch ( e ) { | ||
it( 'should take intervals with <= 0.1% error per interval', function( done ) { | ||
it( 'should take intervals with <= 0.5% error per interval', function( done ) { | ||
@@ -58,3 +58,3 @@ var timer = __.timer(); | ||
try { | ||
assert( errorRate <= (i * 0.1) ); | ||
assert( errorRate <= (i * 0.5) ); | ||
done(); | ||
@@ -71,3 +71,3 @@ } catch ( e ) { | ||
it( 'should reset intervals with <= 0.1% error per interval', function( done ) { | ||
it( 'should reset intervals with <= 0.5% error per interval', function( done ) { | ||
@@ -88,3 +88,3 @@ var timer = __.timer(); | ||
try { | ||
assert( errorRate <= 0.1 ); | ||
assert( errorRate <= 0.5 ); | ||
@@ -91,0 +91,0 @@ done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42262
1206