0.2.2 • Published 5 years ago

node-tee v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

NodeTee

Simple test runner for Nodejs projects.

Instruction

Define test with Tee
const {Tee} = require('node-tee');

const myTee = Tee.new('Controller x');
myTee.case('Controller should pass', () => {
    assert(true, true);
});
module.exports = myTee;
Register Tee in Pot
const {Pot} = require('node-tee');
const myTee = require('./myTee.path.js');

const myPot = Pot.new('My App');
myPot.register([myTee]);
myPot.run();
expect

case method callback provide expect functionality

myTee('Controller', (expect) => {
    expect(true).toBe(true);
    expect(true).toBeTruthy();
    expect(false).toBeFalsy();
})
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago