Skip to content

Commit fce8324

Browse files
committed
chore: linting
1 parent 72791ca commit fce8324

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/core/src/test/ts/buildstamp.test.ts

+10-8
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,36 @@ describe('buildstamp', () => {
1515
})
1616

1717
describe('getCIInfo()', () => {
18-
const expected = {ci_run_id: '123', ci_run_url: 'https://cicd.com/123'}
18+
const ciRunId = '123'
19+
const ciRunUrl = 'https://cicd.com/123'
20+
const expected = {ci_run_id: ciRunId, ci_run_url: ciRunUrl}
1921
const cases: [string, Record<string, string>, Record<string, string>][] = [
2022
[
2123
'detects TeamCity env',
2224
{
23-
BUILD_NUMBER: '123',
24-
BUILD_URL: 'https://cicd.com/123'
25+
BUILD_NUMBER: ciRunId,
26+
BUILD_URL: ciRunUrl
2527
},
2628
expected
2729
],
2830
[
2931
'detects GitLab env',
3032
{
31-
CI_JOB_ID: '123',
32-
CI_JOB_URL: 'https://cicd.com/123'
33+
CI_JOB_ID: ciRunId,
34+
CI_JOB_URL: ciRunUrl
3335
},
3436
expected
3537
],
3638
[
3739
'detects GitHub env',
3840
{
39-
GITHUB_RUN_ID: '123',
41+
GITHUB_RUN_ID: ciRunId,
4042
GITHUB_SERVER_URL: 'https://cicd.com',
4143
GITHUB_REPOSITORY: 'foo/bar'
4244
},
4345
{
44-
ci_run_id: '123',
45-
ci_run_url: 'https://cicd.com/foo/bar/actions/runs/123'
46+
ci_run_id: ciRunId,
47+
ci_run_url: `https://cicd.com/foo/bar/actions/runs/${ciRunId}`
4648
}
4749
],
4850
[

0 commit comments

Comments
 (0)