frontend: fix: mouse event creation with mocha/chai