Skip to content

Commit c3da873

Browse files
committed
style: apply code style
1 parent fe1a4dd commit c3da873

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

index.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import test from "ava";
44

55
async function buildTestProject(path: string): Promise<void> {
66
return yarn(path, [])
7-
.then(code => code === 0 ? yarn(path, ["build"]) : code)
7+
.then(code => (code === 0 ? yarn(path, ["build"]) : code))
88
.then(code => {
99
if (code !== 0) {
1010
throw new Error("Build exited with error status");
@@ -14,12 +14,14 @@ async function buildTestProject(path: string): Promise<void> {
1414

1515
async function yarn(path: string, args: readonly string[]): Promise<number> {
1616
const fullPath = resolve(__dirname, path);
17-
return new Promise((resolve, reject) => fork(require.resolve("yarn/bin/yarn.js"), args, {cwd: fullPath})
18-
.on("error", reject)
19-
.on("exit", (code, signal) => code == null ? reject(signal) : resolve(code)));
17+
return new Promise((resolve, reject) =>
18+
fork(require.resolve("yarn/bin/yarn.js"), args, {cwd: fullPath})
19+
.on("error", reject)
20+
.on("exit", (code, signal) => (code == null ? reject(signal) : resolve(code)))
21+
);
2022
}
2123

2224
test("type-module-config-cjs-import-js", async t => {
2325
await buildTestProject("test-projects/type-module-config-cjs-import-js");
2426
t.pass();
25-
})
27+
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import {test} from "./test.js"
1+
import {test} from "./test.js";
22

33
test();
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export function test(): void {
2-
}
1+
export function test(): void {}

0 commit comments

Comments
 (0)