Skip to content

Misleading test in some.test.ts #63

@Hrdtr

Description

@Hrdtr

Problem: A test labeled "invalid operand type" passes { key: 'value' } as operand.
Since isPlainObject({ key: 'value' }) is true, operand validation passes. The TypeError
actually comes from checkComplexCondition trying to evaluate the string 'value' as a
condition expression. The test passes but tests something different than what it claims.

File: tests/operators/some.test.ts
Fix: Rename the test to clarify what's actually being tested. Add a separate test
with a truly invalid operand (e.g., operand: 42) that exercises operand type checking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions