From fcdb790d6d5f67f6572736b5b13331adb709fe99 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Fri, 30 Aug 2024 04:00:22 +0000 Subject: [PATCH] chore: self mutation (build.diff) Signed-off-by: monada-bot[bot] --- apps/wing/fixtures/valid1/API.md | 12 +++--- apps/wing/src/commands/generateDocs.test.ts | 2 +- apps/wing/src/commands/generateDocs.ts | 1 - examples/wing-fixture/API.md | 46 ++++++++++----------- 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/apps/wing/fixtures/valid1/API.md b/apps/wing/fixtures/valid1/API.md index 04209912a3e..a5882b101a6 100644 --- a/apps/wing/fixtures/valid1/API.md +++ b/apps/wing/fixtures/valid1/API.md @@ -1,25 +1,25 @@ -## API Reference +

API Reference

-### Table of Contents +

Table of Contents

- **Classes** - Foo -### Foo (preflight class) +

Foo (preflight class)

A test class -#### Constructor +

Constructor

 new(): Foo
 
-#### Properties +

Properties

*No properties* -#### Methods +

Methods

*No methods* diff --git a/apps/wing/src/commands/generateDocs.test.ts b/apps/wing/src/commands/generateDocs.test.ts index 3c5284fd84a..0f241a5beba 100644 --- a/apps/wing/src/commands/generateDocs.test.ts +++ b/apps/wing/src/commands/generateDocs.test.ts @@ -31,7 +31,7 @@ describe("wing gen-docs", () => { // WHEN await generateDocs(); - + // THEN const files = await fs.readdir(projectDir); expect(files.findIndex((path) => basename(path) === "API.md")).not.toEqual(-1); diff --git a/apps/wing/src/commands/generateDocs.ts b/apps/wing/src/commands/generateDocs.ts index 5c8fe9e5dc2..5efb98d993d 100644 --- a/apps/wing/src/commands/generateDocs.ts +++ b/apps/wing/src/commands/generateDocs.ts @@ -27,7 +27,6 @@ export async function generateDocs() { } } - const docsFile = resolve(workDir, "API.md"); await writeFile(docsFile, docs.docsContents); diff --git a/examples/wing-fixture/API.md b/examples/wing-fixture/API.md index aaa2ed48edc..eb3329b5a17 100644 --- a/examples/wing-fixture/API.md +++ b/examples/wing-fixture/API.md @@ -1,6 +1,6 @@ -## API Reference +

API Reference

-### Table of Contents +

Table of Contents

- **Classes** - PublicClass @@ -14,39 +14,39 @@ - **Enums** - FavoriteNumbers -### PublicClass (preflight class) +

PublicClass (preflight class)

-#### Constructor +

Constructor

 new(): PublicClass
 
-#### Properties +

Properties

| **Name** | **Type** | **Description** | | --- | --- | --- | | publicField | num | *No description* | -#### Methods +

Methods

| **Signature** | **Description** | | --- | --- | | publicMethod(): void | *No description* | -### Store (preflight class) +

Store (preflight class)

-#### Constructor +

Constructor

 new(options: StoreOptions?): Store
 
-#### Properties +

Properties

*No properties* -#### Methods +

Methods

| **Signature** | **Description** | | --- | --- | @@ -55,52 +55,52 @@ new(options: StoreOptions?): Store | onSet(handler: inflight (str): void): void | *No description* | | inflight set(message: str): void | *No description* | -### subdir.Util (preflight class) +

subdir.Util (preflight class)

-#### Constructor +

Constructor

 new(): Util
 
-#### Properties +

Properties

*No properties* -#### Methods +

Methods

| **Signature** | **Description** | | --- | --- | | static inflight double(msg: str): str | *No description* | | static inflight makeKeyInflight(name: str): str | *No description* | -### PublicInterface (interface) +

PublicInterface (interface)

-#### Properties +

Properties

*No properties* -#### Methods +

Methods

*No methods* -### PublicStruct (struct) +

PublicStruct (struct)

-#### Properties +

Properties

*No properties* -### StoreOptions (struct) +

StoreOptions (struct)

-#### Properties +

Properties

| **Name** | **Type** | **Description** | | --- | --- | --- | | name | str? | *No description* | -### FavoriteNumbers (enum) +

FavoriteNumbers (enum)

-#### Values +

Values

| **Name** | **Description** | | --- | --- |