refactor: add new name "Event" for the set Stage and Exception

This commit is contained in:
Justin Lin committed 2025-04-21 11:58:05 +08:00
1 parent 6e804f0ed4
commit 2dc40a2254
5 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -66,19 +66,19 @@ const quest: IQuest = {
describe('exceptions', () => {
it('should return the stage exception', async () => {
const session = new Session(
{ completedStages: [] },
{ completedEvents: [] },
quest,
new MockFileChecker()
)
expect(await session.runCommand({ command: 'ls' })).toBe('exception1')
await session.runCommand({ command: 'echo start' })
console.log('completed', session.completedStages)
console.log('completed', session.completedEvents)
expect(await session.runCommand({ command: 'ls' })).toBe('stage2')
})
it('should return the catch all exception', async () => {
const session = new Session(
{ completedStages: [] },
{ completedEvents: [] },
quest,
new MockFileChecker()
)
@@ -89,7 +89,7 @@ describe('exceptions', () => {
it('should return the global exception', async () => {
const session = new Session(
{ completedStages: [] },
{ completedEvents: [] },
quest,
new MockFileChecker()
)