Skip to content

Commit d0472cd

Browse files
committed
chore: lint
1 parent ecc7128 commit d0472cd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ jobs:
195195
echo "LIST_TEST: $LIST_TEST"
196196
LIST_TEST_SED=$(echo $LIST_TEST | sed s#$(pwd)\\\\##g | sed 's#\\\\#/#g')
197197
echo "LIST_TEST_SED: $LIST_TEST_SED"
198+
LIST_TEST_SED_TWO=$(echo $LIST_TEST | sed s#$(pwd)##g | sed 's#\\\\#/#g')
199+
echo "LIST_TEST_SED_TWO: $LIST_TEST_SED_TWO"
198200
TEST=$(circleci tests glob "test/windows/**/*.spec.ts" | circleci tests split --split-by=timings | sed 's#\\\\#/#g')
199201
echo "TEST: $TEST"
200202
npm run test-jest-windows -- $TEST

test/windows/plugin.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ describe("windows scanning", () => {
9696

9797
console.log("=== DEBUG: Starting scan ===");
9898
console.log("Image:", imageNameAndTag);
99-
99+
100100
const pluginResult = await plugin.scan({
101101
path: imageNameAndTag,
102102
"exclude-app-vulns": true,
103103
});
104-
104+
105105
console.log("Scan completed successfully");
106106

107107
const depGraph: DepGraph = pluginResult.scanResults[0].facts.find(
@@ -113,18 +113,20 @@ describe("windows scanning", () => {
113113
const imageLayers: string[] = pluginResult.scanResults[0].facts.find(
114114
(fact) => fact.type === "imageLayers",
115115
)!.data;
116-
116+
117117
// Debug output
118118
console.log("=== DEBUG: imageLayers ===");
119119
console.log("Total layers:", imageLayers.length);
120120
imageLayers.forEach((layer, index) => {
121121
console.log(`Layer ${index}: "${layer}"`);
122122
console.log(` - basename: "${path.basename(layer)}"`);
123123
console.log(` - endsWith("layer.tar"): ${layer.endsWith("layer.tar")}`);
124-
console.log(` - endsWith("\\\\layer.tar"): ${layer.endsWith("\\layer.tar")}`);
124+
console.log(
125+
` - endsWith("\\\\layer.tar"): ${layer.endsWith("\\layer.tar")}`,
126+
);
125127
});
126128
console.log("=========================");
127-
129+
128130
expect(imageLayers.length).toBeGreaterThan(0);
129131
expect(
130132
imageLayers.every((layer) => path.basename(layer) === "layer.tar"),

0 commit comments

Comments
 (0)