diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index f95826674..99470c2a7 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -280,7 +280,10 @@ mod tests { } fn create_test_worker() -> Worker { - let state = ThreadSafeState::mock(); + let state = ThreadSafeState::mock(vec![ + String::from("./deno"), + String::from("hello.js"), + ]); let mut worker = Worker::new("TEST".to_string(), startup_data::deno_isolate_init(), state); js_check(worker.execute("denoMain()")); |