wtest 0.1.2

Tools for writing and running tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let _ = require( 'wTools' );

try
{
  throw _.error.err( 'Simplest error sample' );
}
catch( err )
{
  _.error.attend( err );
  console.log( `Attended: ${ err }` )
}


/*
  This sample outputs nothing.
  If error should not be logged neither halt a porcess then use routine _.error.attend to change state of error object
  from `unattended` to `atteneded`.
*/