From 011e157cac7698050370e24495a9002dacfceea9 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Thu, 13 Apr 2023 18:26:45 -0700 Subject: Docs restructuring (#2638) * Restructure * Update nav * Reorg * Reshuffle ecosystem pages * Split up runtime/runtime * Back to runtime/index * Fix issue * Split up runtime/index * Add Writing Tests page * Prettier matcher table * More updates --- docs/api/utils.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'docs/api/utils.md') diff --git a/docs/api/utils.md b/docs/api/utils.md index ce3d0d6f9..59167b2b7 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -94,9 +94,7 @@ test("peek", () => { // If we peek a rejected promise, it: // - returns the error // - does not mark the promise as handled - const rejected = Promise.reject( - new Error("Successfully tested promise rejection"), - ); + const rejected = Promise.reject(new Error("Successfully tested promise rejection")); expect(peek(rejected).message).toBe("Successfully tested promise rejection"); }); ``` @@ -128,7 +126,7 @@ const currentFile = import.meta.url; Bun.openInEditor(currentFile); ``` -You can override this via the `debug.editor` setting in your [`bunfig.toml`](/docs/project/configuration) +You can override this via the `debug.editor` setting in your [`bunfig.toml`](/docs/runtime/configuration) ```toml-diff#bunfig.toml + [debug] @@ -142,5 +140,5 @@ Bun.openInEditor(import.meta.url, { editor: "vscode", // or "subl" line: 10, column: 5, -}) +}); ``` -- cgit v1.2.3