Remove non-working unit test

This commit is contained in:
sharkdp 2020-10-01 20:22:04 +02:00 committed by David Peter
parent 31acbe20d3
commit 9c4c3e965b
1 changed files with 0 additions and 17 deletions

View File

@ -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();