mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-30 10:04:53 +00:00
Update test with module wrapper
This commit is contained in:
@@ -44,7 +44,7 @@ describe('with variables missing', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('create', () => {
|
describe('Deployment', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
|
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
|
||||||
process.env.GITHUB_RUN_ID = '123'
|
process.env.GITHUB_RUN_ID = '123'
|
||||||
@@ -81,6 +81,7 @@ describe('create', () => {
|
|||||||
jest.spyOn(core, 'debug').mockImplementation(jest.fn())
|
jest.spyOn(core, 'debug').mockImplementation(jest.fn())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('#create', () => {
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
// Remove mock for `core.getInput('preview')`
|
// Remove mock for `core.getInput('preview')`
|
||||||
delete process.env.INPUT_PREVIEW
|
delete process.env.INPUT_PREVIEW
|
||||||
@@ -191,9 +192,9 @@ describe('create', () => {
|
|||||||
artifactExchangeScope.done()
|
artifactExchangeScope.done()
|
||||||
createDeploymentScope.done()
|
createDeploymentScope.done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('check', () => {
|
describe('#check', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
|
process.env.ACTIONS_RUNTIME_URL = 'http://my-url/'
|
||||||
process.env.GITHUB_RUN_ID = '123'
|
process.env.GITHUB_RUN_ID = '123'
|
||||||
@@ -271,4 +272,5 @@ describe('check', () => {
|
|||||||
createDeploymentScope.done()
|
createDeploymentScope.done()
|
||||||
deploymentStatusScope.done()
|
deploymentStatusScope.done()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user