Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
feat: add "test" and "group"
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Apr 11, 2019
1 parent c8a6e57 commit 777f0cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ export const assert: <Left, Right>(
* Placeholder value followed by "as T"
*/
export const _: any;

/** The "it" of spec.ts */
export const test: (name: string, fn: () => void) => void;

/** The "describe" of spec.ts */
export const group: (name: string, fn: () => void) => void;
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
exports.assert = x => x;
exports.test = (_, f) => f();
exports.group = (_, f) => f();

0 comments on commit 777f0cc

Please sign in to comment.