Sign in
bazel
/
rules_typescript
/
46c36f09b29f99f4f85bd14a6745eabf82075187
/
.
/
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
();