/thout

Primary LanguageJavaScriptMIT LicenseMIT

Build Status codecov

thout

Installation

$ npm install thout

Usage

$ thout test/**/*.js
const assert = require('assert');
const test = require('thout');

test('pass', () => {
  assert(true);
});

test('fail', () => {
  assert(false);
});

test('promise resolve', () => {
  return Promise.resolve(true);
});

test('promise reject', () => {
  return Promise.reject(new Error('promise reject'));
});

test('async', (done) => {
  setTimeout(() => {
    done();
  }, 10);
});

test('timeout', (done) => {});

test('pending');

test.skip('skip', () => {
  assert(true);
});

Example

$ thout example/

License

MIT © mkwtys