Skip to content

Commit

Permalink
correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Nov 23, 2015
1 parent 2737c2d commit 5d28041
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test.js
Expand Up @@ -2,16 +2,6 @@ var expect = require('chai').expect
, perf = require('./')

describe('perf', function() {
it('should time fast fn', function() {
var fn = String
expect(perf(fn)()).to.be.below(1)
})

it('should time slow fn', function() {
var fn = function(){ for (var i = 0; i < 1000000; i++) Math.pow(Math.random(),5) }
expect(perf(fn)()).to.be.above(1)
})

it('should be completely unobtrustive', function() {
var fn = function(d){ return 'foo' + d }
expect(perf(fn)('5')).to.be.eql(fn('5'))
Expand Down

0 comments on commit 5d28041

Please sign in to comment.