mirror of https://github.com/helix-editor/helix
parent
939261fc07
commit
05e5520ec0
|
@ -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…
Reference in New Issue