Skip to content

Commit

Permalink
Merge pull request #24 from ubq-testing/development
Browse files Browse the repository at this point in the history
fix(config): add descriptions to JSON schema properties
  • Loading branch information
gentlementlegen authored Feb 5, 2025
2 parents a6e1849 + 27c253b commit 0bae3bb
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
13 changes: 12 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log", "**/*.http", "**/*.toml", "src/types/database.ts", "dist/**"],
"ignorePaths": [
"**/*.json",
"**/*.css",
"node_modules",
"**/*.log",
"**/*.http",
"**/*.toml",
"src/types/database.ts",
"dist/**",
"bun.lockb",
"eslint.config.mjs"
],
"useGitignore": true,
"language": "en",
"words": ["Nektos", "dataurl", "devpool", "outdir", "servedir", "Supabase", "SUPABASE", "typebox", "ubiquibot", "Smee", "Rpcs", "hono"],
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
coverage/
coverage/
bun.lockb
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"properties": {
"registerWalletWithVerification": {
"default": false,
"description": "Validate an Ethers signed message from the user to verify their wallet address",
"type": "boolean"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { StaticDecode, Type as T } from "@sinclair/typebox";
* which are built into the context object from setup().
*/
export const pluginSettingsSchema = T.Object({
registerWalletWithVerification: T.Boolean({ default: false }),
registerWalletWithVerification: T.Boolean({ default: false, description: "Validate an Ethers signed message from the user to verify their wallet address" }),
});

export type PluginSettings = StaticDecode<typeof pluginSettingsSchema>;
6 changes: 3 additions & 3 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("Wallet command tests", () => {
sender: "ubiquibot",
})
);
}, 10000);
}, 20000);

it("Should handle wallet command", async () => {
const spy = jest.spyOn(Logs.prototype, "ok");
Expand Down Expand Up @@ -112,7 +112,7 @@ describe("Wallet command tests", () => {
sender: "ubiquibot",
})
);
}, 10000);
}, 20000);

it("Should unregister a wallet", async () => {
const spy = jest.spyOn(Logs.prototype, "ok");
Expand All @@ -136,5 +136,5 @@ describe("Wallet command tests", () => {
} as unknown as Context);
expect(spy).toHaveBeenCalledTimes(1);
expect(spy).toHaveBeenLastCalledWith("Successfully unset wallet");
}, 10000);
}, 20000);
});

0 comments on commit 0bae3bb

Please sign in to comment.