Skip to content

Commit 727fc48

Browse files
committed
refactor: move ip declaration to top
1 parent 38cbe9c commit 727fc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ test('reports 0 coverage when no lines are found ', () => {
208208
test('fails when min_coverage is not a number', () => {
209209
const lcovPath = './fixtures/lcov.100.info';
210210
const minCoverage = '10%';
211+
const ip = path.join(__dirname, 'index.js');
211212

212213
process.env['INPUT_PATH'] = lcovPath;
213214
process.env['INPUT_MIN_COVERAGE'] = minCoverage;
214215

215-
const ip = path.join(__dirname, 'index.js');
216216
try {
217217
cp.execSync(`node ${ip}`, { env: process.env }).toString();
218218
fail('this code should fail');

0 commit comments

Comments
 (0)