add test for explicit extensionless file sources
This commit is contained in:
parent
d78a138ca3
commit
79b2ce7af8
1 changed files with 13 additions and 0 deletions
|
|
@ -4321,6 +4321,19 @@ mod scanner {
|
|||
assert_eq!(files, vec!["src/foo/index.html"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn explicit_file_sources_include_default_ignored_files_without_extensions() {
|
||||
let ScanResult {
|
||||
candidates, files, ..
|
||||
} = scan_with_globs(
|
||||
&[(".env", "content-['.env']"), ("index.html", "content-['index.html']")],
|
||||
vec!["@source '.env'"],
|
||||
);
|
||||
|
||||
assert_eq!(candidates, vec!["content-['.env']"]);
|
||||
assert_eq!(files, vec![".env"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_extract_used_css_variables_from_css() {
|
||||
let dir = tempdir().unwrap().into_path();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue