Skip to content

Commit

Permalink
Improve spec descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Apr 4, 2022
1 parent 727ec8b commit 43c06b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/github/v3/createStatusComment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ describe('getCommentBody', () => {
});
});

describe('when repo is private or public', () => {
describe('shield.io badges', () => {
const getParams = (opts: Partial<ValidConfigOptions>) => ({
options: {
interactive: true,
Expand All @@ -634,7 +634,7 @@ describe('getCommentBody', () => {
} as BackportResponse,
});

it('posts a comment without shields.io badge`', () => {
it('posts a comment without shields.io badge when repo is private`', () => {
const params = getParams({ isRepoPrivate: true });
expect(getCommentBody(params)).not.toContain('img.shields.io');
expect(getCommentBody(params)).toMatchInlineSnapshot(`
Expand All @@ -653,7 +653,7 @@ describe('getCommentBody', () => {
`);
});

it('posts a comment with shields.io badge`', () => {
it('posts a comment with shields.io badge when repo is public`', () => {
const params = getParams({ isRepoPrivate: false });
expect(getCommentBody(params)).toContain('img.shields.io');
expect(getCommentBody(params)).toMatchInlineSnapshot(`
Expand Down

0 comments on commit 43c06b3

Please sign in to comment.