Skip to content

Commit e091f88

Browse files
RubenHalmanjunners
authored andcommitted
clear logs
1 parent 19d4bbf commit e091f88

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/No_Missing_Null_Handler.test.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { describe, expect, it } from "@jest/globals";
22
import * as path from "path";
3-
43
import * as core from "../src";
54

65
describe("MissingNullHandler", () => {
@@ -11,13 +10,7 @@ describe("MissingNullHandler", () => {
1110

1211
it("should not return a result", async () => {
1312
const flows = await core.parse([example_uri]);
14-
expect(flows.length).toBeGreaterThan(0); // Fail clearly if flow doesn't load
15-
16-
console.log("Parsed flows:", flows.map(f => ({
17-
name: f.name,
18-
type: f.type,
19-
status: f.status
20-
})));
13+
expect(flows.length).toBeGreaterThan(0);
2114

2215
const ruleConfig = {
2316
rules: {
@@ -28,9 +21,8 @@ describe("MissingNullHandler", () => {
2821
};
2922

3023
const results: core.ScanResult[] = core.scan(flows, ruleConfig);
31-
console.log("Scan results:", JSON.stringify(results, null, 2));
24+
expect(results.length).toBeGreaterThan(0);
3225

33-
expect(results.length).toBeGreaterThan(0); // 🔥 This is your problem now
3426
const ruleResult = results[0].ruleResults.find(r => r.ruleName === "MissingNullHandler");
3527
expect(ruleResult).toBeDefined();
3628
expect(ruleResult.occurs).toBe(false);

0 commit comments

Comments
 (0)