Files
Filip Skokan eebee55a01 refactor: restructure src/lib and src/runtime now that runtime is fixed
BREAKING CHANGE: createRemoteJWKSet now uses fetch, because of that its Node.js only options.agent property has been removed and new fetch-related options were added
2025-02-22 15:16:04 +01:00

20 lines
459 B
Bash
Executable File

#!/bin/bash
source .node_flags.sh
node tap/run-node.ts
WEB_CRYPTO_API=$?
node tap/run-node.ts --keys='KeyObject'
WEB_CRYPTO_API_WITH_KEYOBJECT=$?
echo ""
echo "Node.js with CryptoKey inputs"
test $WEB_CRYPTO_API -eq 0 && echo " passed" || echo " failed"
echo ""
echo "Node.js with KeyObject inputs"
test $WEB_CRYPTO_API_WITH_KEYOBJECT -eq 0 && echo " passed" || echo " failed"
test $WEB_CRYPTO_API -eq 0 && test $WEB_CRYPTO_API_WITH_KEYOBJECT -eq 0