forked from LittleChest/dns-packet
Add tests concerning question QU bit
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user