Fix tests, permissions

This commit is contained in:
Minoru Mizutani 2025-04-29 11:30:51 +09:00
parent 8be8e20efa
commit baedc1f32a
No known key found for this signature in database
8 changed files with 74 additions and 36 deletions

View file

@ -1,11 +1,8 @@
import {
assertEquals,
assertMatch,
assertStringIncludes,
} from "std/assert/mod.ts";
import { describe, it, beforeEach, afterEach } from "std/testing/bdd.ts";
import { assertSpyCalls, spy, stub } from "std/testing/mock.ts";
import { FakeTime } from "std/testing/time.ts";
import { describe, it, afterEach } from "std/testing/bdd.ts";
import {
getConfigDir,
getConfigFilePath,
@ -35,7 +32,7 @@ describe("mcp-auth-config", () => {
const configDir = getConfigDir();
assertStringIncludes(configDir, customDir);
assertStringIncludes(configDir, `mcp-remote-${MCP_REMOTE_VERSION}`);
assertStringIncludes(configDir, `mcp-remote-deno-${MCP_REMOTE_VERSION}`);
});
it("falls back to ~/.mcp-auth if environment variable is not set", () => {
@ -48,7 +45,7 @@ describe("mcp-auth-config", () => {
const configDir = getConfigDir();
assertStringIncludes(configDir, expectedBase);
assertStringIncludes(configDir, `mcp-remote-${MCP_REMOTE_VERSION}`);
assertStringIncludes(configDir, `mcp-remote-deno-${MCP_REMOTE_VERSION}`);
});
});