Put some tests behind #[cfg(test)] (#1459)

It was missing in a few places.
pull/1465/head
Benoît Cortier 3 years ago committed by GitHub
parent 939261fc07
commit 05e5520ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,10 @@ pub struct LspConfig {
pub display_messages: bool,
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn parsing_keymaps_config_file() {
use crate::keymap;
@ -52,3 +56,4 @@ fn parsing_keymaps_config_file() {
}
);
}
}

@ -296,6 +296,10 @@ impl TryFrom<Value> for ThemePalette {
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_parse_style_string() {
let fg = Value::String("#ffffff".to_string());
@ -346,3 +350,4 @@ fn test_parse_style_table() {
.add_modifier(Modifier::BOLD)
);
}
}

Loading…
Cancel
Save