mirror of
https://github.com/actions/checkout.git
synced 2025-04-19 00:56:45 +00:00
must use ||
and not ??
when falling back to commit when ref is not provided.
Signed-off-by: James Bradlee <james.bradlee@telenor.no>
This commit is contained in:
parent
1be0f9404c
commit
0865c4bfce
3 changed files with 4 additions and 7 deletions
|
@ -163,10 +163,8 @@ describe('input-helper tests', () => {
|
|||
inputs.commit = '0123456789012345678901234567890123456789'
|
||||
const settings: IGitSourceSettings = await inputHelper.getInputs()
|
||||
expect(settings).toBeTruthy()
|
||||
expect(settings.ref).toBeTruthy()
|
||||
expect(settings.ref).toStrictEqual(
|
||||
'0123456789012345678901234567890123456789'
|
||||
)
|
||||
expect(settings.ref).toBeFalsy()
|
||||
expect(settings.ref).toStrictEqual('')
|
||||
expect(settings.commit).toBeTruthy()
|
||||
expect(settings.commit).toStrictEqual(
|
||||
'0123456789012345678901234567890123456789'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue