This message was deleted.
# typescript
s
This message was deleted.
l
Currently I'm using this but it seems excessively clunky:
Copy code
return expect(Promise.all([
  bucketObject.name.promise(),
  user.name.promise()
])).to.eventually.satisfy((names: Promise<string>[]) => names[0] == `${names[1]}.txt`, "User and file names don't match");
Plus there's no easy way to display the actual and expected values.. the message is outside the promise-resolution code, but the assertion is inside it...