- try to fix tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as path from 'path';
|
||||
import * as path from 'path'
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
|
||||
@@ -11,7 +11,7 @@ test('missing values should result in failure', () => {
|
||||
}
|
||||
try {
|
||||
cp.execSync(`node ${ip}`, options).toString()
|
||||
fail("Should not succeed, because values miss")
|
||||
fail('Should not succeed, because values miss')
|
||||
} catch (error) {
|
||||
console.log(`correctly failed due to: ${error}`)
|
||||
}
|
||||
@@ -24,11 +24,11 @@ test('missing values should result in failure', () => {
|
||||
process.env['INPUT_REPO'] = 'release-changelog-builder-action'
|
||||
process.env['INPUT_FROMTAG'] = 'v0.3.0'
|
||||
process.env['INPUT_TOTAG'] = 'v0.5.0'
|
||||
|
||||
|
||||
const ip = path.join(__dirname, '..', 'lib', 'main.js')
|
||||
const options: cp.ExecSyncOptions = {
|
||||
env: process.env
|
||||
}
|
||||
const result = cp.execSync(`node ${ip}`, options).toString()
|
||||
// should succeed
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user