mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
11 lines
290 B
JavaScript
11 lines
290 B
JavaScript
|
|
import {assert} from 'chai'
|
||
|
|
import {resolveDomainBySoaRecord} from "../src/util.js"
|
||
|
|
describe('dns', () => {
|
||
|
|
it('resolveDomainBySoaRecord', async () => {
|
||
|
|
const resp = await resolveDomainBySoaRecord("a.corp.smartdeer.com")
|
||
|
|
|
||
|
|
assert.equal(resp, "smartdeer.com")
|
||
|
|
|
||
|
|
});
|
||
|
|
|
||
|
|
})
|