|
|
|
@ -59,7 +59,7 @@ describe('Open in files action execute tests', () => { |
|
|
|
|
// Silent action
|
|
|
|
|
expect(exec).toBe(null) |
|
|
|
|
expect(goToRouteMock).toBeCalledTimes(1) |
|
|
|
|
expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo' }) |
|
|
|
|
expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo', openfile: 'true' }) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
test('Open in files with folder', async () => { |
|
|
|
@ -79,6 +79,6 @@ describe('Open in files action execute tests', () => { |
|
|
|
|
// Silent action
|
|
|
|
|
expect(exec).toBe(null) |
|
|
|
|
expect(goToRouteMock).toBeCalledTimes(1) |
|
|
|
|
expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo/Bar' }) |
|
|
|
|
expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo/Bar', openfile: 'true' }) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|