Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dgellow committed Sep 15, 2023
1 parent 45400d2 commit c5487a2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,34 @@ describe('Manifest', () => {
'custom: pre-release',
]);
});

it('should read reviewers from manifest', async () => {
const getFileContentsStub = sandbox.stub(
github,
'getFileContentsOnBranch'
);
getFileContentsStub
.withArgs('release-please-config.json', 'next')
.resolves(
buildGitHubFileContent(fixturesPath, 'manifest/config/reviewers.json')
)
.withArgs('.release-please-manifest.json', 'next')
.resolves(
buildGitHubFileContent(
fixturesPath,
'manifest/versions/versions.json'
)
);
const manifest = await Manifest.fromManifest(
github,
github.repository.defaultBranch,
undefined,
undefined,
{changesBranch: 'next'}
);
expect(manifest['reviewers']).to.deep.equal(['sam', 'frodo']);
});

it('should read extra labels from manifest', async () => {
const getFileContentsStub = sandbox.stub(
github,
Expand Down

0 comments on commit c5487a2

Please sign in to comment.