docs(mocks): fix syntax error in example

Closes #4183