Wrap value to use BDD assertion
function sum(a, b) { return a + b } cy.wrap(sum(2, 3)).should('equal', 5)