(context, eventName)
| 240 | } |
| 241 | |
| 242 | function findMatchingEvents(context, eventName) { |
| 243 | const allEvents = context.sdamEvents.concat(context.cmapEvents); |
| 244 | return eventName === 'ServerMarkedUnknownEvent' |
| 245 | ? context.sdamEvents |
| 246 | .filter(event => event.constructor.name === 'ServerDescriptionChangedEvent') |
| 247 | .filter(event => event.newDescription.type === 'Unknown') |
| 248 | : allEvents.filter(event => event.constructor.name.match(new RegExp(eventName))); |
| 249 | } |
| 250 | |
| 251 | module.exports = { TestRunnerContext }; |
no test coverage detected