Skip to content

Commit

Permalink
Add a test for sourceFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 2, 2021
1 parent 5bb9316 commit 23cdd87
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,4 +842,16 @@ fn issue_1984() {
Ok(())
})
.unwrap()
fn opt_source_file_name_1() {
let res = str_with_opt(
"import Foo from 'foo';",
Options {
source_file_name: Some("entry".into()),
source_maps: Some(SourceMapsConfig::Bool(true)),
..Default::default()
},
)
.unwrap();

assert_eq!(res.to_string(), "")
}

0 comments on commit 23cdd87

Please sign in to comment.