(command)
| 98 | it('sends correct command with eventType only', function () { |
| 99 | const fakeDriver = { |
| 100 | execute(command) { |
| 101 | assert.strictEqual(command.getName(), cmd.Name.FIRE_SESSION_EVENT) |
| 102 | const params = command.getParameters() |
| 103 | assert.strictEqual(params['eventType'], 'test:started') |
| 104 | assert.strictEqual(params['payload'], undefined) |
| 105 | return Promise.resolve({ |
| 106 | success: true, |
| 107 | eventType: 'test:started', |
| 108 | timestamp: '2024-01-15T10:30:00Z', |
| 109 | }) |
| 110 | }, |
| 111 | } |
| 112 | const { WebDriver } = require('selenium-webdriver') |
| 113 | // Directly test the command structure |
nothing calls this directly
no test coverage detected