diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-06-09 04:42:28 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-08 14:42:28 -0400 |
commit | 307e0927531025dd707a0f4dc3fd549b65598eb2 (patch) | |
tree | ad006d9b82d94b8d0f32e0bcef48eb5f1f531cc6 /cli/state.rs | |
parent | 35f879ad32bc7fddb1c20e9a4154f42c7b9b8350 (diff) |
Add 'bundle' subcommand. (#2467)
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/state.rs b/cli/state.rs index d7681fc79..9a8b1cab2 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -311,8 +311,7 @@ impl ThreadSafeState { } #[cfg(test)] - pub fn mock() -> ThreadSafeState { - let argv = vec![String::from("./deno"), String::from("hello.js")]; + pub fn mock(argv: Vec<String>) -> ThreadSafeState { ThreadSafeState::new( flags::DenoFlags::default(), argv, @@ -349,5 +348,8 @@ impl ThreadSafeState { #[test] fn thread_safe() { fn f<S: Send + Sync>(_: S) {} - f(ThreadSafeState::mock()); + f(ThreadSafeState::mock(vec![ + String::from("./deno"), + String::from("hello.js"), + ])); } |