roll into right node syntax

This commit is contained in:
yimysty
2022-08-04 17:09:46 -07:00
parent 06d025f427
commit 99f9079292
7 changed files with 15 additions and 14 deletions
+1 -6
View File
@@ -20,16 +20,11 @@ describe('with all environment variables set', () => {
process.env.GITHUB_ACTOR = 'monalisa'
process.env.GITHUB_ACTION = '__monalisa/octocat'
process.env.GITHUB_ACTION_PATH = 'something'
core.getIDToken = jest.fn().mockResolvedValue("")
})
it.only('Executes cleanly', done => {
it('Executes cleanly', done => {
const ip = path.join(__dirname, './index.js')
cp.exec(`node ${ip}`, { env: process.env }, (err, stdout) => {
console.log("************")
console.log(err)
console.log("************")
console.log(stdout)
expect(stdout).toMatch(/::debug::all variables are set/)
done()
})