forked from benchmark-action/github-action-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove references to payload as much as possible
- Loading branch information
1 parent
bd200b2
commit 0f3dd79
Showing
6 changed files
with
117 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -342,14 +342,23 @@ describe('extractResult()', function() { | |
it('collects the commit information from current head via REST API as fallback when githubToken is provided', async function() { | ||
dummyGitHubContext.payload = {}; | ||
dummyCommitData = { | ||
author: { | ||
login: 'testAuthorLogin', | ||
}, | ||
committer: { | ||
login: 'testCommitterLogin', | ||
}, | ||
commit: { | ||
author: { | ||
name: 'test author', | ||
date: 'repo updated at timestamp', | ||
date: 'author updated at timestamp', | ||
email: '[email protected]', | ||
}, | ||
committer: { | ||
name: 'test committer', | ||
date: 'repo updated at timestamp', | ||
// We use the `author.date` instead. | ||
// date: 'committer updated at timestamp', | ||
email: '[email protected]', | ||
}, | ||
message: 'test message', | ||
}, | ||
|
@@ -368,15 +377,17 @@ describe('extractResult()', function() { | |
const expectedCommit = { | ||
id: 'abcd1234', | ||
message: 'test message', | ||
timestamp: 'repo updated at timestamp', | ||
timestamp: 'author updated at timestamp', | ||
url: 'https://github.com/dymmy/repo/commit/abcd1234', | ||
author: { | ||
name: 'test author', | ||
username: 'test author', | ||
username: 'testAuthorLogin', | ||
email: '[email protected]', | ||
}, | ||
committer: { | ||
name: 'test committer', | ||
username: 'test committer', | ||
username: 'testCommitterLogin', | ||
email: '[email protected]', | ||
}, | ||
}; | ||
A.deepEqual(commit, expectedCommit); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters