https://github.com/mingderwang/tape1-template
https://github.com/mingderwang/tape1-template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mingderwang/tape1-template
- Owner: mingderwang
- License: mit
- Created: 2023-02-14T04:10:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T15:58:43.000Z (over 3 years ago)
- Last Synced: 2025-09-24T05:27:10.225Z (10 months ago)
- Language: TypeScript
- Size: 99.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# build
```
yarn
```
# test
```
yarn test
```
# test result
```
➜ tape1-template git:(main) ✗ yarn test
yarn run v1.22.19
$ tape -r ts-node/register tests/**/*.ts | npx tap-spec
generatePassword
basic
jQV2Yz!0
✔ should have a minimum length of 8
✔ should contain at least one lowercase letter
✔ should contain at least one uppercase letter
✔ should contain at least one digit
custom length
Y6bvp9BnLN!0
✔ should have the specified length
custom character set
3ca3311b
✔ should only contain custom characters
invalid options
✔ should throw an error for invalid length
✔ should throw an error for empty characters
total: 8
passing: 8
duration: 60ms
✨ Done in 3.84s.
```