diff options
Diffstat (limited to 'cli/node/analyze.rs')
-rw-r--r-- | cli/node/analyze.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/node/analyze.rs b/cli/node/analyze.rs index 050cbf0c1..4040c5a2b 100644 --- a/cli/node/analyze.rs +++ b/cli/node/analyze.rs @@ -167,7 +167,7 @@ mod tests { #[test] fn test_esm_code_with_node_globals() { let r = esm_code_with_node_globals( - &NodeAnalysisCache::new(None), + &NodeAnalysisCache::new_in_memory(), &ModuleSpecifier::parse("https://example.com/foo/bar.js").unwrap(), "export const x = 1;".to_string(), ) @@ -183,7 +183,7 @@ mod tests { #[test] fn test_esm_code_with_node_globals_with_shebang() { let r = esm_code_with_node_globals( - &NodeAnalysisCache::new(None), + &NodeAnalysisCache::new_in_memory(), &ModuleSpecifier::parse("https://example.com/foo/bar.js").unwrap(), "#!/usr/bin/env node\nexport const x = 1;".to_string(), ) |