Skip to content

Commit

Permalink
context.config now returns a simpler object
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen authored and dependabot-preview[bot] committed Dec 26, 2020
1 parent 68e3739 commit 025dff9
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions test/helpers/config-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,7 @@ function configFixture(
fileName = 'config.yml',
repoFileName = 'release-drafter.yml'
) {
return {
type: 'file',
encoding: 'base64',
size: 5362,
name: repoFileName,
path: `.github/${repoFileName}`,
content: encodeContent(
fs.readFileSync(`${__dirname}/../fixtures/config/${fileName}`)
),
sha: '3d21ec53a331a6f037a91c368710b99387d012c1',
url: `https://api.github.com/repos/octokit/octokit.rb/contents/.github/${repoFileName}`,
git_url: `https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1`,
html_url: `https://github.com/octokit/octokit.rb/blob/master/.github/${repoFileName}`,
download_url: `https://raw.githubusercontent.com/octokit/octokit.rb/master/.github/${repoFileName}`,
_links: {
git: `https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1`,
self: `https://api.github.com/repos/octokit/octokit.rb/contents/.github/${repoFileName}`,
html: `https://github.com/octokit/octokit.rb/blob/master/.github/${repoFileName}`,
},
}
return fs.readFileSync(`${__dirname}/../fixtures/config/${fileName}`)
}

module.exports = function getConfigMock(
Expand Down

0 comments on commit 025dff9

Please sign in to comment.