Update to Prettier 2 and use ES Private Fields (#4498)

This commit is contained in:
Kitson Kelly 2020-03-29 04:03:49 +11:00 committed by GitHub
parent 1397b8e0e7
commit bced52505f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
329 changed files with 2787 additions and 2430 deletions

View file

@ -13,21 +13,21 @@ test({
calledBack = true;
});
assert(calledBack);
}
},
});
test({
name: "Closing current directory without callback returns void Promise",
async fn() {
await new Dir(".").close();
}
},
});
test({
name: "Closing current directory synchronously works",
fn() {
new Dir(".").closeSync();
}
},
});
test({
@ -37,7 +37,7 @@ test({
const enc: Uint8Array = new TextEncoder().encode("std/node");
assertEquals(new Dir(enc).path, "std/node");
}
},
});
test({
@ -64,7 +64,7 @@ test({
} finally {
Deno.removeSync(testDir);
}
}
},
});
test({
@ -103,7 +103,7 @@ test({
} finally {
Deno.removeSync(testDir, { recursive: true });
}
}
},
});
test({
@ -132,7 +132,7 @@ test({
} finally {
Deno.removeSync(testDir, { recursive: true });
}
}
},
});
test({
@ -158,5 +158,5 @@ test({
} finally {
Deno.removeSync(testDir, { recursive: true });
}
}
},
});