Skip to content

Commit 3f5526e

Browse files
committed
test: lint fixtures
1 parent e6a18f8 commit 3f5526e

30 files changed

+540
-382
lines changed
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1+
'use strict';
2+
// Here we can't import common module as the coverage will be different based on the system
3+
14
// Empty functions that don't do anything
25
function doNothing1() {
3-
// Not implemented
6+
// Not implemented
47
}
58

69
function doNothing2() {
7-
// No logic here
10+
// No logic here
811
}
912

1013
function unusedFunction1() {
11-
// Intentionally left empty
14+
// Intentionally left empty
1215
}
1316

1417
function unusedFunction2() {
15-
// Another empty function
18+
// Another empty function
1619
}
1720

1821
// Unused variables
19-
const unusedVariable1 = "This is never used";
22+
const unusedVariable1 = 'This is never used';
2023
const unusedVariable2 = 42;
2124
let unusedVariable3;
2225

2326
// Empty class with no methods
2427
class UnusedClass {
25-
constructor() {
26-
// Constructor does nothing
27-
}
28+
constructor() {
29+
// Constructor does nothing
30+
}
2831
}
2932

3033
// Empty object literal
@@ -35,15 +38,15 @@ const emptyArray = [];
3538

3639
// Function with parameters but no body
3740
function doNothingWithParams(param1, param2) {
38-
// No implementation
41+
// No implementation
3942
}
4043

4144
// Function that returns nothing
4245
function returnsNothing() {
43-
// No return statement
46+
// No return statement
4447
}
4548

4649
// Another unused function
4750
function unusedFunction3() {
48-
// More empty code
49-
}
51+
// More empty code
52+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
// Here we can't import common module as the coverage will be different based on the system
3+
4+
// Empty functions that don't do anything
5+
function doNothing1() {
6+
// Not implemented
7+
}
8+
9+
function doNothing2() {
10+
// No logic here
11+
}

test/fixtures/test-runner/coverage-snap/b.mjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)