protractor
HTML
<button id="run">Run</button>
JavaScript
function compare() {
console.log('sdf');
expect(true).toBe(true);
}
$('#run').click(compare);
<button id="run">Run</button>
function compare() {
console.log('sdf');
expect(true).toBe(true);
}
$('#run').click(compare);