Skip to content

Commit 59d15ca

Browse files
committed
docs: add CONTRIBUTING.md
1 parent cbb26d6 commit 59d15ca

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing
2+
3+
## Tests
4+
5+
Run tests with the following:
6+
7+
npm test
8+
9+
Or a specific test:
10+
11+
npm test -- --grep "TEST_NAME"
12+
13+
### Adding tests
14+
15+
Easily download metadata like so:
16+
17+
curl -LH 'accept: application/vnd.citationstyles.csl+json' https://doi.org/$DOI | jq '[.]' > test/$TEST_NAME.json
18+
19+
Then, add a test in `test/suite.js`.

0 commit comments

Comments
 (0)