little-cartoon-10569
11/25/2020, 10:25 PMreturn expect(bucketObject.name.promise()).to.eventually.eql("Joanne.txt");
Is there a way to do something more like this?
return user.name.promise().then(username => expect(bucketObject.name.promise()).to.eventually.eql(`${username}.txt`));
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");