mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
feat: 腾讯云cdn支持
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import pkg from 'chai'
|
||||
import options from './options.js'
|
||||
import { Executor } from '../src/index.js'
|
||||
import { createOptions } from '../../../test/options.js'
|
||||
const { expect } = pkg
|
||||
|
||||
describe('AutoDeploy', function () {
|
||||
it('#run', async function () {
|
||||
const options = createOptions()
|
||||
const executor = new Executor()
|
||||
const ret = await executor.run(options)
|
||||
expect(ret).ok
|
||||
@@ -12,12 +13,14 @@ describe('AutoDeploy', function () {
|
||||
})
|
||||
it('#forceCert', async function () {
|
||||
const executor = new Executor()
|
||||
const options = createOptions()
|
||||
const ret = await executor.run(options, { forceCert: true, forceDeploy: false })
|
||||
expect(ret).ok
|
||||
expect(ret.cert).ok
|
||||
})
|
||||
it('#forceDeploy', async function () {
|
||||
const executor = new Executor()
|
||||
const options = createOptions()
|
||||
const ret = await executor.run(options, { forceCert: false, forceDeploy: true })
|
||||
expect(ret).ok
|
||||
expect(ret.cert).ok
|
||||
|
||||
Reference in New Issue
Block a user