fava
Version:
A wannabe tiny largely-drop-in replacement for ava that works in the browser too.
13 lines (12 loc) • 337 B
JavaScript
/* IMPORT */
import Register from './register.js';
import Suiter from './suiter.js';
/* MAIN */
//TODO: Maybe add flags and hooks to this function too
const suite = (title, implementation) => {
const suiter = new Suiter(title);
Register.suiter(suiter, implementation);
suiter.execute();
};
/* EXPORT */
export default suite;