Sign in
bazel
/
rules_typescript
/
d4c62038ba4d34f4c766f4832168e7af33297205
/
.
/
internal
/
tsetse
/
tests
/
ban_expect_truthy_promise
/
negatives.ts
blob: 62a3485b3ce3ddcbea5168b2b61d0b3da286a234 [
file
] [
log
] [
blame
]
function
expect
(
x
:
{}):
ClassWithTruthy
{
return
new
ClassWithTruthy
();
}
class
ClassWithTruthy
{
toBeTruthy
()
{}
}
new
ClassWithTruthy
().
toBeTruthy
();
expect
(
Promise
.
resolve
(
1
)).
toBeTruthy
();