Skip to content

Commit 1d9d882

Browse files
committed
Suppress lint warnings in thenable tests
The noThenProperty rule incorrectly flags test cases that intentionally create objects with `then` properties to test thenable detection.
1 parent 73f06a3 commit 1d9d882

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/sandbox-container/tests/runtime/thenable.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ describe('isThenable', () => {
77
});
88

99
it('returns true for custom thenable', () => {
10+
// biome-ignore lint/suspicious/noThenProperty: Testing thenable detection requires objects with `then`
1011
expect(isThenable({ then: () => {} })).toBe(true);
1112
});
1213

1314
it('returns false for non-thenable', () => {
1415
expect(isThenable(null)).toBe(false);
1516
expect(isThenable(42)).toBe(false);
17+
// biome-ignore lint/suspicious/noThenProperty: Testing thenable detection requires objects with `then`
1618
expect(isThenable({ then: 'not a function' })).toBe(false);
1719
});
1820
});

0 commit comments

Comments
 (0)