mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-23 00:03:27 +01:00
Remove non-working unit test
This commit is contained in:
parent
31acbe20d3
commit
9c4c3e965b
@ -192,23 +192,6 @@ fn basic() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn git_xdg_config_home() {
|
||||
use assert_cmd::Command;
|
||||
let mut cmd = Command::cargo_bin("bat").unwrap();
|
||||
let mut map = SyntaxMapping::builtin();
|
||||
|
||||
cmd.env("XDG_CONFIG_HOME", "/foo/bar");
|
||||
|
||||
map.insert("/foo/bar/git/config", MappingTarget::MapTo("Git Config"))
|
||||
.ok();
|
||||
|
||||
assert_eq!(
|
||||
map.get_syntax_for("/foo/bar/git/config"),
|
||||
Some(MappingTarget::MapTo("Git Config"))
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn user_can_override_builtin_mappings() {
|
||||
let mut map = SyntaxMapping::builtin();
|
||||
|
Loading…
Reference in New Issue
Block a user