flaverr.getBareTrace.test.js 813 B

1234567891011121314151617
  1. describe('flaverr.getBareTrace()', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  2. describe('with `flaverr.getBareTrace(err)`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  3. it('should work');
  4. it('should return the provided error\'s trace');
  5. });
  6. describe('with `flaverr.getBareTrace()`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  7. it('should return a good trace from where it was invoked');
  8. });
  9. describe('with `flaverr.getBareTrace(caller)`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  10. it('should fail with an error message explaining about Error.captureStackTrace if the caller is an unrelated function not even from the current stack');
  11. it('should return a good trace from where the caller function was invoked in the current stack');
  12. });
  13. });