[refactor] use sinon in confirmation component test
This refactors the confirmation component to use sinon instead of manually checking the the result of calling a function.
This refactors the confirmation component to use sinon instead of manually checking the the result of calling a function.