We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b313816 commit 5cceddfCopy full SHA for 5cceddf
src/unit/unit.test.ts
@@ -68,7 +68,8 @@ describe("Core Logic Unit Tests (Node.js)", () => {
68
const results = analyzer.analyzeFunctions(sourceCode);
69
70
assert.strictEqual(results.length, 1);
71
- assert.strictEqual(results[0].complexity, 4); // 2 ifs + 1 && + 1 ||
+ // 2 ifs (+1 each) + '&&' (+2 at nest 1) + '||' (+2 at nest 1) = 6
72
+ assert.strictEqual(results[0].complexity, 6);
73
});
74
75
it("should handle loops correctly", () => {
0 commit comments