format input-helper
Signed-off-by: James Bradlee <james.bradlee@telenor.no>pull/1858/head
parent
3a6c8fb5e6
commit
491fae084d
|
@ -153,7 +153,9 @@ describe('input-helper tests', () => {
|
||||||
expect(settings.ref).toBeTruthy()
|
expect(settings.ref).toBeTruthy()
|
||||||
expect(settings.ref).toStrictEqual('refs/pull/123/merge')
|
expect(settings.ref).toStrictEqual('refs/pull/123/merge')
|
||||||
expect(settings.commit).toBeTruthy()
|
expect(settings.commit).toBeTruthy()
|
||||||
expect(settings.commit).toStrictEqual('0123456789012345678901234567890123456789')
|
expect(settings.commit).toStrictEqual(
|
||||||
|
'0123456789012345678901234567890123456789'
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('ref fallbacks to commit if ref is empty but commit is specified', async () => {
|
it('ref fallbacks to commit if ref is empty but commit is specified', async () => {
|
||||||
|
@ -162,8 +164,12 @@ describe('input-helper tests', () => {
|
||||||
const settings: IGitSourceSettings = await inputHelper.getInputs()
|
const settings: IGitSourceSettings = await inputHelper.getInputs()
|
||||||
expect(settings).toBeTruthy()
|
expect(settings).toBeTruthy()
|
||||||
expect(settings.ref).toBeTruthy()
|
expect(settings.ref).toBeTruthy()
|
||||||
expect(settings.ref).toStrictEqual('0123456789012345678901234567890123456789')
|
expect(settings.ref).toStrictEqual(
|
||||||
|
'0123456789012345678901234567890123456789'
|
||||||
|
)
|
||||||
expect(settings.commit).toBeTruthy()
|
expect(settings.commit).toBeTruthy()
|
||||||
expect(settings.commit).toStrictEqual('0123456789012345678901234567890123456789')
|
expect(settings.commit).toStrictEqual(
|
||||||
|
'0123456789012345678901234567890123456789'
|
||||||
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue