We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8923e43 commit 6b06ce9Copy full SHA for 6b06ce9
1 file changed
src/tests/components/RightSidebar/RightSidebar.spec.ts
@@ -10,6 +10,7 @@ import RightSidebar from '../../../components/RightSidebar/RightSidebar.vue'
10
11
const filesStoreMock = {
12
getFile: vi.fn(() => ({ name: 'agreement.pdf' })),
13
+ getSelectedFileView: vi.fn(() => ({ name: 'agreement.pdf' })),
14
getSubtitle: vi.fn(() => 'Alice, Bob'),
15
}
16
@@ -68,6 +69,7 @@ vi.mock('../../../components/RightSidebar/SignTab.vue', () => ({
68
69
describe('RightSidebar.vue', () => {
70
beforeEach(() => {
71
filesStoreMock.getFile.mockReturnValue({ name: 'agreement.pdf' })
72
+ filesStoreMock.getSelectedFileView.mockReturnValue({ name: 'agreement.pdf' })
73
filesStoreMock.getSubtitle.mockReturnValue('Alice, Bob')
74
sidebarStoreMock.activeTab = 'request-signature-tab'
75
sidebarStoreMock.isVisible = true
0 commit comments