So I’m using a code mirror and want to be able to test user input in javascript code upon an onClick event. Similar to a codewars clone. I’m somewhat familiar with mocha.js