use super::features;
use pretty_assertions::assert_eq;
use rho_protocol::DaemonFeature;
// Covers: the daemon's hello names `browser` exactly when it is built with
// the `browser` feature. A client would otherwise offer a browser the
// daemon cannot serve, or hide one it can. CI runs it with the feature;
// `--no-default-features --features bundled-sqlite` runs it without.
// Owner: daemon host
#[test]
fn the_hello_names_the_browser_only_when_built_with_it() {
assert_eq!(
features().contains(&DaemonFeature::Browser),
cfg!(feature = "browser")
);
}