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 73f06a3 commit 1d9d882Copy full SHA for 1d9d882
packages/sandbox-container/tests/runtime/thenable.test.ts
@@ -7,12 +7,14 @@ describe('isThenable', () => {
7
});
8
9
it('returns true for custom thenable', () => {
10
+ // biome-ignore lint/suspicious/noThenProperty: Testing thenable detection requires objects with `then`
11
expect(isThenable({ then: () => {} })).toBe(true);
12
13
14
it('returns false for non-thenable', () => {
15
expect(isThenable(null)).toBe(false);
16
expect(isThenable(42)).toBe(false);
17
18
expect(isThenable({ then: 'not a function' })).toBe(false);
19
20
0 commit comments