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