How should I write unit test for function which should test: 50 < n < 100? Is there better way than loop in test? Can I pass arguments to test function to generate test case based on that arguments? ex.
it('should return $n+1', function(n){
expect(add(n)).to.be.eql(n+1);
},[ 1, 2, 3])
and it should show result as 3 different tests:
should return 1+1
should return 2+1
should return 3+1