.toBe()

This assertion checks a subject is a particular value using strict equality.

const promise = Promise.resolve();
 
jestUnexpected(promise).toBe(promise);
const somePromise = Promise.resolve();
const otherPromise = Promise.resolve();
 
jestUnexpected(somePromise).toBe(otherPromise);
expected Promise to be Promise