Skip to content

Commit

Permalink
test: lint fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Aug 23, 2024
1 parent e6a18f8 commit 3e546b4
Show file tree
Hide file tree
Showing 30 changed files with 540 additions and 382 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
'use strict';
// Here we can't import common module as the coverage will be different based on the system

// Empty functions that don't do anything
function doNothing1() {
// Not implemented
// Not implemented
}

function doNothing2() {
// No logic here
// No logic here
}

function unusedFunction1() {
// Intentionally left empty
// Intentionally left empty
}

function unusedFunction2() {
// Another empty function
// Another empty function
}

// Unused variables
const unusedVariable1 = "This is never used";
const unusedVariable1 = 'This is never used';
const unusedVariable2 = 42;
let unusedVariable3;

// Empty class with no methods
class UnusedClass {
constructor() {
// Constructor does nothing
}
constructor() {
// Constructor does nothing
}
}

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

// Function with parameters but no body
function doNothingWithParams(param1, param2) {
// No implementation
// No implementation
}

// Function that returns nothing
function returnsNothing() {
// No return statement
// No return statement
}

// Another unused function
function unusedFunction3() {
// More empty code
}
// More empty code
}
11 changes: 11 additions & 0 deletions test/fixtures/test-runner/coverage-snap/b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';
// Here we can't import common module as the coverage will be different based on the system

// Empty functions that don't do anything
function doNothing1() {
// Not implemented
}

function doNothing2() {
// No logic here
}
8 changes: 0 additions & 8 deletions test/fixtures/test-runner/coverage-snap/b.mjs

This file was deleted.

Loading

0 comments on commit 3e546b4

Please sign in to comment.