JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json
test.js
tressa.js

README.md

tressa build status

A little test utility from Andrea Giammarchi and Claudio D'angelis born after this post and this tweet.

Compatible with NodeJS 0.8 and higher.

var test = require('tressa');

test.title('My Library');

// synchronous
test(condition, 'optional comment');

// asynchronous
test
  .async(done => {
    setTimeout(() => {
      test(condition, 'optional comment');
      done();
    });
  })
  .then(() => {
    console.log("That's it!");
  });

(C) 2017 MIT Style License