mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
feat: 自动化流程
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import pkg from 'chai'
|
||||
import options from './options.js'
|
||||
import { Executor } from '../src/index.js'
|
||||
const { expect } = pkg
|
||||
|
||||
describe('AutoDeploy', function () {
|
||||
it('#run', async function () {
|
||||
const executor = new Executor()
|
||||
const ret = await executor.run(options)
|
||||
expect(ret).ok
|
||||
expect(ret.cert).ok
|
||||
})
|
||||
it('#forceCert', async function () {
|
||||
const executor = new Executor()
|
||||
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 ret = await executor.run(options, { forceCert: false, forceDeploy: true })
|
||||
expect(ret).ok
|
||||
expect(ret.cert).ok
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user