import pkg from 'chai' 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 expect(ret.cert).ok }) 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 }) })