You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
代码格式调整:packages/core/**/*.js
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const https = require('https')
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '1'
|
||||
|
||||
function request () {
|
||||
return new Promise((resolve, reject) => {
|
||||
const options = {
|
||||
@@ -7,7 +9,7 @@ function request () {
|
||||
port: 443,
|
||||
path: '/ssltest.php',
|
||||
method: 'GET',
|
||||
rejectUnauthorized: true
|
||||
rejectUnauthorized: true,
|
||||
}
|
||||
console.log('ssl test: gagedigital')
|
||||
const req = https.request(options, (res) => {
|
||||
@@ -28,12 +30,13 @@ function request () {
|
||||
})
|
||||
}
|
||||
// eslint-disable-next-line no-undef
|
||||
describe('ssl.verify', function () {
|
||||
describe('ssl.verify', () => {
|
||||
// eslint-disable-next-line no-undef
|
||||
it('regex.test.js', async function () {
|
||||
// https.request('https://test1.gagedigital.com/ssltest.php')
|
||||
it('regex.test.js', async () => {
|
||||
// https.request('https://test1.gagedigital.com/ssltest.php')
|
||||
|
||||
await request()
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
// expect(ret).be.ok
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user