@bryan-thompson/inspector-assessment-server 1.35.2 → 1.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -50,6 +50,9 @@ const createMockRequest = (headers) => ({
|
|
|
50
50
|
headers: headers,
|
|
51
51
|
});
|
|
52
52
|
describe("is401Error", () => {
|
|
53
|
+
afterEach(() => {
|
|
54
|
+
jest.clearAllMocks();
|
|
55
|
+
});
|
|
53
56
|
describe("SseError detection", () => {
|
|
54
57
|
it("should return true for SseError with code 401", () => {
|
|
55
58
|
const error = new SseError(401, "Unauthorized", createMockErrorEvent());
|
|
@@ -18,6 +18,9 @@ beforeAll(async () => {
|
|
|
18
18
|
sessionToken = serverModule.sessionToken;
|
|
19
19
|
});
|
|
20
20
|
describe("Authentication Middleware", () => {
|
|
21
|
+
afterEach(() => {
|
|
22
|
+
jest.clearAllMocks();
|
|
23
|
+
});
|
|
21
24
|
describe("Valid Authentication", () => {
|
|
22
25
|
it("should accept requests with valid Bearer token", async () => {
|
|
23
26
|
const response = await request(app)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bryan-thompson/inspector-assessment-server",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.3",
|
|
4
4
|
"description": "Server-side application for the Enhanced MCP Inspector with assessment capabilities",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bryan Thompson <bryan@triepod.ai>",
|