summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2020-03-21 16:48:27 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2020-03-21 19:19:15 +0100
commit06b7be7ee90a336bd1f51deea1e90f357cb01916 (patch)
tree034bf6581124f7aca65a4d61ef8e6e98d80c3bc0 /tests
parentb1b8addf7e5f7b06b741caf7bdf11c795795ae1f (diff)
Major restructuring of theme/syntax handling
Diffstat (limited to 'tests')
-rw-r--r--tests/no_duplicate_extensions.rs2
-rw-r--r--tests/syntax_detection.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/no_duplicate_extensions.rs b/tests/no_duplicate_extensions.rs
index ef9e76a9..b87a1f9c 100644
--- a/tests/no_duplicate_extensions.rs
+++ b/tests/no_duplicate_extensions.rs
@@ -19,7 +19,7 @@ fn no_duplicate_extensions() {
"sass",
];
- let assets = HighlightingAssets::new();
+ let assets = HighlightingAssets::from_binary();
let mut extensions = HashSet::new();
diff --git a/tests/syntax_detection.rs b/tests/syntax_detection.rs
index ac155959..751c3173 100644
--- a/tests/syntax_detection.rs
+++ b/tests/syntax_detection.rs
@@ -18,7 +18,7 @@ struct SyntaxDetectionTest {
impl SyntaxDetectionTest {
fn new() -> Self {
SyntaxDetectionTest {
- assets: HighlightingAssets::new(),
+ assets: HighlightingAssets::from_binary(),
syntax_mapping: SyntaxMapping::new(),
temp_dir: TempDir::new("bat_syntax_detection_tests")
.expect("creation of temporary directory"),