mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00: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]
|
#[test]
|
||||||
fn user_can_override_builtin_mappings() {
|
fn user_can_override_builtin_mappings() {
|
||||||
let mut map = SyntaxMapping::builtin();
|
let mut map = SyntaxMapping::builtin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user