aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-05 18:27:02 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-05 18:27:02 -0700
commit65d646bc68cb00ddac84f60a492b58c0edf5867f (patch)
treefe596e0d7ec528ba131f54a7d169021c254be708
parentd8c467be42427e1b52647cbbfd1974b887e17b35 (diff)
downloadbun-65d646bc68cb00ddac84f60a492b58c0edf5867f.tar.gz
bun-65d646bc68cb00ddac84f60a492b58c0edf5867f.tar.zst
bun-65d646bc68cb00ddac84f60a492b58c0edf5867f.zip
Prettier
-rw-r--r--src/bun.js/path.exports.js2
-rw-r--r--src/bun.js/undici.exports.js2
-rw-r--r--test/js/node/path/path.test.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bun.js/path.exports.js b/src/bun.js/path.exports.js
index 8879771ab..dd0aabadd 100644
--- a/src/bun.js/path.exports.js
+++ b/src/bun.js/path.exports.js
@@ -1,5 +1,5 @@
// Utils to extract later
-const createModule = (obj) => Object.assign(Object.create(null), obj);
+const createModule = obj => Object.assign(Object.create(null), obj);
function bound(obj) {
var result = createModule({
diff --git a/src/bun.js/undici.exports.js b/src/bun.js/undici.exports.js
index d2d66e0ae..dc1ee47a3 100644
--- a/src/bun.js/undici.exports.js
+++ b/src/bun.js/undici.exports.js
@@ -167,7 +167,7 @@ export async function request(
if (typeof url === "string") {
if (query) url = new URL(url);
} else if (typeof url === "object" && url !== null) {
- if (!(url instanceof URL) ){
+ if (!(url instanceof URL)) {
// TODO: Parse undici UrlObject
throw new Error("not implemented");
}
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js
index ce41ca10f..86807b325 100644
--- a/test/js/node/path/path.test.js
+++ b/test/js/node/path/path.test.js
@@ -9,8 +9,8 @@ const strictEqual = (...args) => {
expect(true).toBe(true);
};
-it('should not inherit Object.prototype', () => {
- expect(path).not.toHaveProperty('toString');
+it("should not inherit Object.prototype", () => {
+ expect(path).not.toHaveProperty("toString");
});
it("path.basename", () => {