flaverr.test.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. describe('flaverr()', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  2. describe('overriding an existing Error\'s `.code`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  3. it('should work with `flaverr({code: \'…\'},err)`');
  4. it('should work with `flaverr(\'…\',err)`');
  5. });
  6. describe('adding/overriding other miscellaneous properties of an existing Error', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  7. it('should work');
  8. });
  9. describe('constructing a new Error', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  10. it('should work');
  11. it('should get expected customizations');
  12. it('should have `.name === \'Error\'` by default');
  13. });
  14. describe('overriding an existing Error\'s `.name`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  15. it('should work');
  16. it('should also impact the `.stack`');
  17. });
  18. describe('overriding an existing Error\'s `.message`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  19. it('should work');
  20. it('should also impact the `.stack`');
  21. });
  22. describe('attempting to set an Error\'s `.stack`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  23. it('should fail');
  24. });
  25. describe('using `flaverr(…,…,caller)` to improve the stack trace', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  26. it('should work');
  27. it('should properly modify stack trace');
  28. });
  29. });