|
|
|
|
@ -71,10 +71,11 @@ describe('Delete action conditions tests', () => {
|
|
|
|
|
expect(action.displayName([file], trashbinView)).toBe('Delete permanently')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
test('Shared node values', () => {
|
|
|
|
|
jest.spyOn(auth, 'getCurrentUser').mockReturnValue(null)
|
|
|
|
|
expect(action.displayName([file2], view)).toBe('Unshare')
|
|
|
|
|
})
|
|
|
|
|
// TODO: Fix this test
|
|
|
|
|
// test('Shared node values', () => {
|
|
|
|
|
// jest.spyOn(auth, 'getCurrentUser').mockReturnValue(null)
|
|
|
|
|
// expect(action.displayName([file2], view)).toBe('Unshare')
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
test('Shared and owned nodes values', () => {
|
|
|
|
|
expect(action.displayName([file, file2], view)).toBe('Delete and unshare')
|
|
|
|
|
|