Skip to content

Commit 7599e6b

Browse files
committed
fix tests
1 parent 534f0d3 commit 7599e6b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/commands/SelectReport.test.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ describe('SelectReport', () => {
2929
})
3030

3131
it('should show a QuickPick with report file paths', async () => {
32-
const quickPick = command.execute()
33-
const selectedOption = quickPick.optionsWithCallBacks.get(PROJECT_REPORT_PATH_001)
32+
const quickPick = command.execute()!
33+
const selectedOption = quickPick.optionsWithCallBacks.get('./profiles/session/001.oak')
3434
selectedOption?.selectionCallback()
3535

3636
expect(container.storage.storeWorkspace).toBeCalled()
3737

38-
const quickPick2 = await command.execute()
39-
expect(quickPick2.vsCodeComponent.activeItems).toEqual([{ label: PROJECT_REPORT_PATH_001 }])
38+
const quickPick2 = await command.execute()!
39+
expect(quickPick2.vsCodeComponent.activeItems).toEqual([{ label: './profiles/session/001.oak' }])
4040
})
4141

4242
it('should have active item', async () => {
43-
const quickPick = command.execute()
44-
const selectedOption = quickPick.optionsWithCallBacks.get(PROJECT_REPORT_PATH_001)
43+
const quickPick = command.execute()!
44+
const selectedOption = quickPick.optionsWithCallBacks.get('./profiles/session/001.oak')
4545
selectedOption?.selectionCallback()
4646

47-
const quickPick2 = await command.execute()
48-
expect(quickPick2.vsCodeComponent.activeItems).toEqual([{ label: PROJECT_REPORT_PATH_001 }])
47+
const quickPick2 = await command.execute()!
48+
expect(quickPick2.vsCodeComponent.activeItems).toEqual([{ label: './profiles/session/001.oak' }])
4949
})
5050

5151
it('should show a message when no reports are available', async () => {

0 commit comments

Comments
 (0)