While writing a unit test in my app, I came across the need to assert the state of a promise. Specifically, I want to assert that a promise is pending. Currently, the isPending property has internal access. This pull request simply adds the public modifier to isPending, isFulfilled and isRejected properties of Promise.
While writing a unit test in my app, I came across the need to assert the state of a promise. Specifically, I want to assert that a promise is pending. Currently, the
isPending
property has internal access. This pull request simply adds the public modifier toisPending
,isFulfilled
andisRejected
properties ofPromise
.