You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
This commit is contained in:
@ -50,6 +50,7 @@ describe('stateToWhenClauseContext', () => {
|
||||
it('should be in trash if command folder is deleted', async () => {
|
||||
const applicationState = {
|
||||
notes: [],
|
||||
notesParentType: 'Folder',
|
||||
folders: [
|
||||
{ id: '1', deleted_time: 1722567036580, share_id: '', parent_id: '' },
|
||||
],
|
||||
@ -71,4 +72,14 @@ describe('stateToWhenClauseContext', () => {
|
||||
expect(resultingState.inTrash).toBe(false);
|
||||
});
|
||||
|
||||
it('should not be in trash if viewing all notes', async () => {
|
||||
const applicationState = {
|
||||
selectedFolderId: 'folder',
|
||||
notesParentType: 'SmartFolder',
|
||||
} as State;
|
||||
const resultingState = stateToWhenClauseContext(applicationState);
|
||||
|
||||
expect(resultingState.inTrash).toBe(false);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user