Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Dec 30, 2024
1 parent 7f9d8c5 commit ea2a389
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
18 changes: 18 additions & 0 deletions get.bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {
getProcessInfo,
getProcessInfoSync
} from "./get.ts";
Deno.bench("Async", {
permissions: {
run: ["pwsh"]
}
}, async () => {
await getProcessInfo();
});
Deno.bench("Sync", {
permissions: {
run: ["pwsh"]
}
}, () => {
getProcessInfoSync();
});
14 changes: 2 additions & 12 deletions get.test.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import {
getProcessInfo,
getProcessInfoSync
} from "./get.ts";
Deno.test("Async", {
import { getProcessInfo } from "./get.ts";
Deno.test("Main", {
permissions: {
run: ["pwsh"]
}
}, async () => {
console.log(await getProcessInfo());
});
Deno.test("Sync", {
permissions: {
run: ["pwsh"]
}
}, () => {
console.log(getProcessInfoSync());
});

0 comments on commit ea2a389

Please sign in to comment.