Skip to content

Commit

Permalink
Add example output
Browse files Browse the repository at this point in the history
  • Loading branch information
linus committed Dec 8, 2022
1 parent 5cf7aee commit c686fe2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Testy is no fuss [doctests][doctest] for Node.js. Document your code with
## Installation

```bash
npm install @linus/testy
$ npm install @linus/testy
```

## Usage
Expand Down Expand Up @@ -48,6 +48,19 @@ describe("Tests", () => testy("hello.js"));

3. Run `mocha` and relax. Your code *and* your examples are tested!

```bash
$ npm test

Tests
hello.js
hello
✔ hello("Mr von Neumann")
//=> "Hello, Mr von Neumann!"


1 passing (6ms)
```

## Development

Testy is under active development. Pull requests are welcome:
Expand Down

0 comments on commit c686fe2

Please sign in to comment.