From 380364bd5af5b9b92225a758a75043d78fb79c7d Mon Sep 17 00:00:00 2001 From: vulcainman Date: Fri, 13 Oct 2023 14:17:50 +0200 Subject: [PATCH] Add tests concerning question QU bit --- test.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test.js b/test.js index e4d8669..b8ccef0 100644 --- a/test.js +++ b/test.js @@ -164,6 +164,34 @@ tape('query', function (t) { }] }) + testEncoder(t, packet, { + type: 'query', + questions: [{ + type: 'A', + class: 'IN', + name: 'hello.a.com', + qu_bit: false + }, { + type: 'SRV', + name: 'hello.srv.com', + qu_bit: false + }] + }) + + testEncoder(t, packet, { + type: 'query', + questions: [{ + type: 'A', + class: 'IN', + name: 'hello.a.com', + qu_bit: true + }, { + type: 'SRV', + name: 'hello.srv.com', + qu_bit: true + }] + }) + t.end() })