You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I trying to migrate off expect.js. It works fine for most of the tests. However, when the expect call is inline it isn't converted:
# WRONG: this is ignored
return model.generate(TITLE)
.then((id) => expect(id).to.be.ok());
# This should be converted to
return model.generate(TITLE)
.then((id) => expect(id).toBeTruthy());
However, when I use { } to declare the function it works:
# OK: This
return model.generate(TITLE)
.then((id) => {
expect(id).to.be.ok()
});
# is successfuly converted to
return model.generate(TITLE)
.then((id) => {
expect(id).toBeTruthy()
});
The text was updated successfully, but these errors were encountered:
Hi,
I trying to migrate off
expect.js
. It works fine for most of the tests. However, when the expect call is inline it isn't converted:However, when I use
{ }
to declare the function it works:The text was updated successfully, but these errors were encountered: