mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
check verification status of head commit when not known
This commit is contained in:
parent
32e97fc746
commit
1cd6df66ac
5 changed files with 77 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
import {GitCommandManager, Commit} from '../lib/git-command-manager'
|
||||
import {GitCommandManager} from '../lib/git-command-manager'
|
||||
|
||||
const REPO_PATH = '/git/local/repos/test-base'
|
||||
|
||||
|
@ -14,11 +14,13 @@ describe('git-command-manager integration tests', () => {
|
|||
const parent = await git.getCommit('HEAD^')
|
||||
const commit = await git.getCommit('HEAD')
|
||||
expect(parent.subject).toEqual('initial commit')
|
||||
expect(parent.signed).toBeFalsy()
|
||||
expect(parent.changes).toEqual([
|
||||
{mode: '100644', status: 'A', path: 'README.md'}
|
||||
])
|
||||
expect(commit.subject).toEqual('add sparkles')
|
||||
expect(commit.parents[0]).toEqual(parent.sha)
|
||||
expect(commit.signed).toBeFalsy()
|
||||
expect(commit.changes).toEqual([
|
||||
{mode: '100644', status: 'M', path: 'README.md'}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue