Skip to content

Commit

Permalink
test: add tests for main functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Aug 13, 2024
1 parent 847e68b commit 7243d23
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: node --test
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
env:
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
.eslintrc.json
.prettierrc
.prettierignore
eleventy-cache-webmentions.test.js
1 change: 1 addition & 0 deletions eleventy-cache-webmentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ module.exports.defaults = defaults;
module.exports.filteredWebmentions = filteredWebmentions;
module.exports.webmentionsByUrl = filteredWebmentions;
module.exports.fetchWebmentions = fetchWebmentions;
module.exports.performFetch = performFetch;
module.exports.getWebmentions = getWebmentions;
module.exports.getByType = getByType;
module.exports.getWebmentionsByType = getByType;
Expand Down
Loading

0 comments on commit 7243d23

Please sign in to comment.