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
The below questions are missing in src/07_promise.test.js in master branch, but exist in the solution.
Do we want to add them to the master branch? or remove them from the solution branch?
it('the `resolve` function can return a value, that is consumed by the `promise.then()` callback', (done) => {
let promise = new Promise((resolve) => {
resolve()
})
promise
.then(value => {
expect(value).toEqual(42)
done()
})
.catch(() => done(new Error('The promise is expected to resolve with 42!')))
})
also
it('is rejected if one rejects', (done) => {
const promise = Promise.all([
new Promise((resolve, reject) => reject(1))
])
promise
.then(() => {
const err = new NotRejectedError()
console.log(err)
done()
})
.catch(() => done())
})
The text was updated successfully, but these errors were encountered:
wisteria-hill-technologies
changed the title
This question is missing in src/07_promise.test.js, but in the solution.
These questions are missing in src/07_promise.test.js, but in the solution.
Apr 13, 2018
The below questions are missing in src/07_promise.test.js in master branch, but exist in the solution.
Do we want to add them to the master branch? or remove them from the solution branch?
also
The text was updated successfully, but these errors were encountered: