Skip to content

Commit d2e5ca5

Browse files
committed
docs: add hint on how to run tests
1 parent 0c4b619 commit d2e5ca5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Generates captchas that can be verified decentrally.
44

55
## Description
66

7-
This is heavily inspired by [svg-captcha](https://github.com/lemonce/svg-captcha/), but written in TypeScript. It also allows you to pass the generate captcha expressions together with the captcha SVG,
7+
This is heavily inspired by [svg-captcha](https://github.com/lemonce/svg-captcha/), but written in TypeScript. It also allows you to pass the generated captcha expressions together with the captcha SVG,
88
so you can verify the results independently. The captcha expressions are encrypted, so they are not
99
machine readable.
1010

@@ -45,3 +45,11 @@ function verify(encryptedCaptchaExpression, captchaSolution) {
4545
return captchaResult // either true on success or false if the solution was wrong
4646
}
4747
```
48+
49+
## Testing
50+
51+
`npm run test`
52+
53+
or
54+
55+
`npm run tdd`

0 commit comments

Comments
 (0)