Skip to content

Commit

Permalink
More style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Aug 14, 2024
1 parent 98d0a0e commit d5c6f71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cli/tests/dylib_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn test_dylib() -> Result<()> {
let js_src = "console.log(42);";
let mut runner = Runner::with_dylib(provider_module()?)?;

let (_, logs, _) = runner.exec_through_dylib(&js_src, None)?;
let (_, logs, _) = runner.exec_through_dylib(js_src, None)?;
assert_eq!("42\n", str::from_utf8(&logs)?);

Ok(())
Expand All @@ -22,7 +22,7 @@ fn test_dylib_with_error() -> Result<()> {

let mut runner = Runner::with_dylib(provider_module()?)?;

let res = runner.exec_through_dylib(&js_src, None);
let res = runner.exec_through_dylib(js_src, None);

assert!(res.is_err());

Expand All @@ -42,7 +42,7 @@ fn test_dylib_with_exported_func() -> Result<()> {

let mut runner = Runner::with_dylib(provider_module()?)?;

let (_, logs, _) = runner.exec_through_dylib(&js_src, Some("foo"))?;
let (_, logs, _) = runner.exec_through_dylib(js_src, Some("foo"))?;
assert_eq!("Toplevel\nIn foo\n", str::from_utf8(&logs)?);

Ok(())
Expand Down

0 comments on commit d5c6f71

Please sign in to comment.