notify flows: GET returns a schema of the events, fields, node kinds and limits
This commit is contained in:
parent
627964f72d
commit
d5802d16a0
5 changed files with 281 additions and 26 deletions
|
|
@ -2118,7 +2118,10 @@ mod tests {
|
|||
let mut routed = events(DeliveryKind::Issues);
|
||||
routed.extend(events(DeliveryKind::PullRequest));
|
||||
routed.sort_unstable();
|
||||
let mut sources = swarm_wire::notify_flows::SOURCE_EVENTS.to_vec();
|
||||
let mut sources = swarm_wire::notify_flows::SOURCE_EVENTS
|
||||
.iter()
|
||||
.map(|(n, _)| *n)
|
||||
.collect::<Vec<_>>();
|
||||
sources.sort_unstable();
|
||||
assert_eq!(routed, sources);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue