From e3f25518897616265a6983611d02ace9fdc18eda Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 2 Feb 2017 21:26:05 -0700 Subject: [PATCH] note testing --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7f8da7..3371777 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,14 @@ Similar API to `dns.js` and `native-dns-packet`. , "res2": 0 , "res3": 0 , "rcode": 0 -, "questions": [ +, "question": [ { "name": "bowie._sftp-ssh._tcp.local" , "type": 1 , "class": 1 , "byteLength": 32 } ] -, "answers": [] +, "answer": [] , "authority": [] , "additional": [] , "byteLength": 44 @@ -50,6 +50,14 @@ Install npm install git+https://git@git.daplie.com:Daplie/dns-lint ``` +**Test**: + +```bash +pushd node_modules/dns-lint + +npm test +``` + 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. -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. **Library**