Promise resolution with objects including a then property