summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index a0ecb6d40..22b629c1a 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -588,16 +588,16 @@ impl ModuleGraphLoader {
#[cfg(test)]
mod tests {
use super::*;
- use crate::global_state::GlobalState;
+ use crate::program_state::ProgramState;
use deno_core::serde_json;
use deno_core::serde_json::json;
async fn build_graph(
module_specifier: &ModuleSpecifier,
) -> Result<ModuleGraph, AnyError> {
- let global_state = GlobalState::new(Default::default()).unwrap();
+ let program_state = ProgramState::new(Default::default()).unwrap();
let mut graph_loader = ModuleGraphLoader::new(
- global_state.file_fetcher.clone(),
+ program_state.file_fetcher.clone(),
None,
Permissions::allow_all(),
false,