lint
This commit is contained in:
parent
e1938b9933
commit
0b2658f5b0
4 changed files with 14 additions and 8 deletions
|
|
@ -41,7 +41,7 @@ describe("DXT CLI", () => {
|
|||
// Commander outputs help to stderr when no command is provided
|
||||
const execError = error as ExecSyncError;
|
||||
expect(execError.stderr.toString()).toContain(
|
||||
"Usage: dxt [options] [command]",
|
||||
"Usage: mcpb [options] [command]",
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
hasRequiredConfigMissing,
|
||||
replaceVariables,
|
||||
} from "../src/shared/config";
|
||||
import type { McpbManifest, Logger } from "../src/types";
|
||||
import type { Logger, McpbManifest } from "../src/types";
|
||||
|
||||
describe("replaceVariables", () => {
|
||||
it("should replace variables in strings", () => {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ describe("McpbManifestSchema", () => {
|
|||
|
||||
expect(result.success).toBe(false);
|
||||
if (!result.success) {
|
||||
const errors = result.error.issues.map((issue: any) => issue.path.join("."));
|
||||
const errors = result.error.issues.map((issue) => issue.path.join("."));
|
||||
expect(errors).toContain("author.name");
|
||||
expect(errors).toContain("author.email");
|
||||
expect(errors).toContain("server.type");
|
||||
|
|
|
|||
|
|
@ -13,7 +13,11 @@ import * as fs from "fs";
|
|||
import forge from "node-forge";
|
||||
import * as path from "path";
|
||||
|
||||
import { signMcpbFile, unsignMcpbFile, verifyMcpbFile } from "../src/node/sign.js";
|
||||
import {
|
||||
signMcpbFile,
|
||||
unsignMcpbFile,
|
||||
verifyMcpbFile,
|
||||
} from "../src/node/sign.js";
|
||||
|
||||
// Test directory
|
||||
const TEST_DIR = path.join(__dirname, "test-output");
|
||||
|
|
|
|||
Loading…
Reference in a new issue