it('should throw an exception if coordinates cannot be parsed', async function () { const gesture = { action: 'moveTo', options: { x: 'a', y: 300 } }; try { await driver.getCoordinates(gesture); sinon.assert.fail('An exception is expected to be thrown'); } catch (e) { // this is expected } });