Merge pull request #1946 from code-yeongyu/fix/failing-tests-v3.8.0
fix(tests): update atlas hook and auto-update-checker tests
This commit is contained in:
commit
8c726f5589
@ -180,8 +180,8 @@ describe("atlas hook", () => {
|
|||||||
|
|
||||||
// then - standalone verification reminder appended
|
// then - standalone verification reminder appended
|
||||||
expect(output.output).toContain("Task completed successfully")
|
expect(output.output).toContain("Task completed successfully")
|
||||||
expect(output.output).toContain("MANDATORY:")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("PHASE 1")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
@ -219,8 +219,8 @@ describe("atlas hook", () => {
|
|||||||
expect(output.output).toContain("Task completed successfully")
|
expect(output.output).toContain("Task completed successfully")
|
||||||
expect(output.output).toContain("SUBAGENT WORK COMPLETED")
|
expect(output.output).toContain("SUBAGENT WORK COMPLETED")
|
||||||
expect(output.output).toContain("test-plan")
|
expect(output.output).toContain("test-plan")
|
||||||
expect(output.output).toContain("LIE")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("PHASE 1")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
@ -401,10 +401,10 @@ describe("atlas hook", () => {
|
|||||||
output
|
output
|
||||||
)
|
)
|
||||||
|
|
||||||
// then - should include session_id instructions and verification
|
// then - should include verification instructions
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("[x]")
|
expect(output.output).toContain("PHASE 1")
|
||||||
expect(output.output).toContain("MANDATORY:")
|
expect(output.output).toContain("PHASE 2")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -16,6 +16,7 @@ mock.module("../checker", () => ({
|
|||||||
getCachedVersion: mockGetCachedVersion,
|
getCachedVersion: mockGetCachedVersion,
|
||||||
getLatestVersion: mockGetLatestVersion,
|
getLatestVersion: mockGetLatestVersion,
|
||||||
updatePinnedVersion: mockUpdatePinnedVersion,
|
updatePinnedVersion: mockUpdatePinnedVersion,
|
||||||
|
revertPinnedVersion: mock(() => false),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
mock.module("../version-channel", () => ({
|
mock.module("../version-channel", () => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user