This commit is contained in:
Yarmo Mackenbach 2021-06-03 09:51:43 +02:00
parent 637ce35ca7
commit f5ea4c05bf
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -56,9 +56,9 @@ describe('utils.generateProxyURL', () => {
} }
expect( expect(
doipjs.utils.generateProxyURL('http', { domain: 'domain.org' }, opts) doipjs.utils.generateProxyURL('http', { domain: 'domain.org' }, opts)
).to.equal('http://localhost/api/2/get/http?domain=domain.org') ).to.equal('https://localhost/api/2/get/http?domain=domain.org')
expect( expect(
doipjs.utils.generateProxyURL('dns', { domain: 'domain.org' }, opts) doipjs.utils.generateProxyURL('dns', { domain: 'domain.org' }, opts)
).to.equal('http://localhost/api/2/get/dns?domain=domain.org') ).to.equal('https://localhost/api/2/get/dns?domain=domain.org')
}) })
}) })