mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
refactor: add new name "Event" for the set Stage and Exception
This commit is contained in:
1 parent
6e804f0ed4
commit
2dc40a2254
5 files changed
+13
-13
No files matched your search
@@ -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()
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user