Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 5, 2025
1 parent 4816e9f commit e8c9050
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ describe('Test correct encoding of badge URL', () => {
it('should URL encode the job ID and repository with special characters', () => {
process.env.GITHUB_WORKFLOW = 'test/job@workflow';
process.env.GITHUB_REPOSITORY = 'test/repo@special';
const expectedBadge: string = '![](https://example.jfrog.io/ui/api/v1/u?s=1&m=1&job_id=test%2Fjob%40workflow&run_id=123&git_repo=test%2Frepo%40special)';
const expectedBadge: string =
'![](https://example.jfrog.io/ui/api/v1/u?s=1&m=1&job_id=test%2Fjob%40workflow&run_id=123&git_repo=test%2Frepo%40special)';
expect(Utils.getUsageBadge()).toBe(expectedBadge);
});

Expand All @@ -610,4 +611,4 @@ describe('Test correct encoding of badge URL', () => {
expect(Utils.getUsageBadge()).toBe(expectedBadge);
});
});
});
});

0 comments on commit e8c9050

Please sign in to comment.