App runs and seems to do what is expected, yet, the test won't pass.
export const updateGold = (term, gold) => { term.moveTo(25, 2); term.eraseLineAfter() term.bold.yellow(gold+' '); }
program runs correctly:
CristianB update gold should accept params term and state. Gold is an internal field of the state object.
term
state
So the output should look more like term.bold.yellow(state.gold+ ' ')
term.bold.yellow(state.gold+ ' ')