mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
registry test update
This commit is contained in:
@@ -85,7 +85,7 @@ describe("Mode Registry", () => {
|
|||||||
// Ensure PROMPT env var is not set (clean up from previous tests)
|
// Ensure PROMPT env var is not set (clean up from previous tests)
|
||||||
const originalPrompt = process.env.PROMPT;
|
const originalPrompt = process.env.PROMPT;
|
||||||
delete process.env.PROMPT;
|
delete process.env.PROMPT;
|
||||||
|
|
||||||
const contextWithMention = createMockContext({
|
const contextWithMention = createMockContext({
|
||||||
eventName: "issue_comment",
|
eventName: "issue_comment",
|
||||||
payload: {
|
payload: {
|
||||||
@@ -102,7 +102,7 @@ describe("Mode Registry", () => {
|
|||||||
const mode = getMode(contextWithMention);
|
const mode = getMode(contextWithMention);
|
||||||
expect(mode).toBe(tagMode);
|
expect(mode).toBe(tagMode);
|
||||||
expect(mode.name).toBe("tag");
|
expect(mode.name).toBe("tag");
|
||||||
|
|
||||||
// Restore original value if it existed
|
// Restore original value if it existed
|
||||||
if (originalPrompt !== undefined) {
|
if (originalPrompt !== undefined) {
|
||||||
process.env.PROMPT = originalPrompt;
|
process.env.PROMPT = originalPrompt;
|
||||||
|
|||||||
Reference in New Issue
Block a user