Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esm module #32

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/test/rrs/dnskey.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"id": 4096,
"zid": 4096,
"owner": "mail.example.com.",
"owner": "example.com.",
"ttl": 86400,
"type": "CERT",
"cert type": "PGP",
"key tag": 0,
"algorithm": 0,
"certificate": "hexidecimalkeystring1"
"type": "DNSKEY",
"flags": 256,
"protocol": 3,
"algorithm": 5,
"publickey": "( AQPSKmynfzW4kyBv015MUG2DeIQ3 Cbl+BBZH4b/0PY1kxkmvHjcZc8no kfzj31GajIQKY+5CptLr3buXA10h WqTkF7H6RfoRqXQeogmMHfpftf6z Mv1LyBUgia7za6ZEzOJBOztyvhjL 742iU/TpPSEDhm2SNKLijfUppn1U aNvv4w== )"
}
2 changes: 1 addition & 1 deletion lib/zone_record.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function getMap(rrType) {
return { address: 'target' }
case 'DNSKEY':
return {
address: 'public key',
address: 'publickey',
weight: 'flags',
priority: 'protocol',
other: 'algorithm',
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
set -eu

NODE="node --no-warnings=ExperimentalWarning"
$NODE test.js teardown
$NODE test.js setup
$NODE test-fixtures.js teardown
$NODE test-fixtures.js setup

cleanup() {
echo "cleaning DB objects"
$NODE test.js teardown
$NODE test-fixtures.js teardown
}

trap cleanup EXIT 1 2 3 6
Expand All @@ -20,7 +20,7 @@ else
# npm i --no-save node-test-github-reporter
# $NODE --test --test-reporter=node-test-github-reporter
# else
$NODE --test --test-reporter=spec
$NODE --test --test-reporter=spec lib/*.test.js routes/*.test.js
# fi
fi

Expand Down
Loading