Update test with module wrapper

This commit is contained in:
James M. Greene
2023-03-06 22:08:01 -06:00
parent 6f75b9951c
commit 93872af9c4

View File

@@ -44,7 +44,7 @@ describe('with variables missing', () => {
})
})
describe('create', () => {
describe('Deployment', () => {
beforeAll(() => {
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
process.env.GITHUB_RUN_ID = '123'
@@ -81,6 +81,7 @@ describe('create', () => {
jest.spyOn(core, 'debug').mockImplementation(jest.fn())
})
describe('#create', () => {
afterEach(() => {
// Remove mock for `core.getInput('preview')`
delete process.env.INPUT_PREVIEW
@@ -191,9 +192,9 @@ describe('create', () => {
artifactExchangeScope.done()
createDeploymentScope.done()
})
})
})
describe('check', () => {
describe('#check', () => {
beforeAll(() => {
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
process.env.GITHUB_RUN_ID = '123'
@@ -271,4 +272,5 @@ describe('check', () => {
createDeploymentScope.done()
deploymentStatusScope.done()
})
})
})