note testing

This commit is contained in:
AJ ONeal 2017-02-02 21:26:05 -07:00
parent 99e4dca8a6
commit e3f2551889
1 changed files with 11 additions and 3 deletions

View File

@ -29,14 +29,14 @@ Similar API to `dns.js` and `native-dns-packet`.
, "res2": 0 , "res2": 0
, "res3": 0 , "res3": 0
, "rcode": 0 , "rcode": 0
, "questions": [ , "question": [
{ "name": "bowie._sftp-ssh._tcp.local" { "name": "bowie._sftp-ssh._tcp.local"
, "type": 1 , "type": 1
, "class": 1 , "class": 1
, "byteLength": 32 , "byteLength": 32
} }
] ]
, "answers": [] , "answer": []
, "authority": [] , "authority": []
, "additional": [] , "additional": []
, "byteLength": 44 , "byteLength": 44
@ -50,6 +50,14 @@ Install
npm install git+https://git@git.daplie.com:Daplie/dns-lint npm install git+https://git@git.daplie.com:Daplie/dns-lint
``` ```
**Test**:
```bash
pushd node_modules/dns-lint
npm test
```
Usage Usage
----- -----
@ -83,7 +91,7 @@ node bin/dns-parse.js samples/a-0.mdns.bin
``` ```
You can also parse a saved packet from the `native-dns-packet` directory. You can also parse a saved packet from the `native-dns-packet` directory.
these test packets have the binary for each record type and what it's parsed output these test packets have the binary for each record type and what it's parsed output
should be. should be.
**Library** **Library**