update devDependencies, fix lint

This commit is contained in:
silverwind 2018-09-05 18:57:04 +02:00
parent 8a6764b2b3
commit f7fef43ce0
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 13 additions and 13 deletions

View File

@ -16,12 +16,12 @@
"ip": "^1.1.5" "ip": "^1.1.5"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^5.2.0", "eslint": "^5.5.0",
"eslint-config-standard": "^11.0.0", "eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.13.0", "eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1", "eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^3.8.0", "eslint-plugin-promise": "^4.0.0",
"eslint-plugin-standard": "^3.1.0", "eslint-plugin-standard": "^4.0.0",
"tape": "^4.9.1" "tape": "^4.9.1"
}, },
"keywords": [ "keywords": [

16
test.js
View File

@ -50,7 +50,7 @@ tape('null', function (t) {
}) })
tape('hinfo', function (t) { tape('hinfo', function (t) {
testEncoder(t, packet.hinfo, {cpu: 'intel', os: 'best one'}) testEncoder(t, packet.hinfo, { cpu: 'intel', os: 'best one' })
t.end() t.end()
}) })
@ -70,21 +70,21 @@ tape('dname', function (t) {
}) })
tape('srv', function (t) { tape('srv', function (t) {
testEncoder(t, packet.srv, {port: 9999, target: 'hello.world.com'}) testEncoder(t, packet.srv, { port: 9999, target: 'hello.world.com' })
testEncoder(t, packet.srv, {port: 9999, target: 'hello.world.com', priority: 42, weight: 10}) testEncoder(t, packet.srv, { port: 9999, target: 'hello.world.com', priority: 42, weight: 10 })
t.end() t.end()
}) })
tape('caa', function (t) { tape('caa', function (t) {
testEncoder(t, packet.caa, {flags: 128, tag: 'issue', value: 'letsencrypt.org', issuerCritical: true}) testEncoder(t, packet.caa, { flags: 128, tag: 'issue', value: 'letsencrypt.org', issuerCritical: true })
testEncoder(t, packet.caa, {tag: 'issue', value: 'letsencrypt.org', issuerCritical: true}) testEncoder(t, packet.caa, { tag: 'issue', value: 'letsencrypt.org', issuerCritical: true })
testEncoder(t, packet.caa, {tag: 'issue', value: 'letsencrypt.org'}) testEncoder(t, packet.caa, { tag: 'issue', value: 'letsencrypt.org' })
t.end() t.end()
}) })
tape('mx', function (t) { tape('mx', function (t) {
testEncoder(t, packet.mx, {preference: 10, exchange: 'mx.hello.world.com'}) testEncoder(t, packet.mx, { preference: 10, exchange: 'mx.hello.world.com' })
testEncoder(t, packet.mx, {exchange: 'mx.hello.world.com'}) testEncoder(t, packet.mx, { exchange: 'mx.hello.world.com' })
t.end() t.end()
}) })