From 60c0c820e6c14fc1d58882ad42aff293aa4bc059 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 22 Mar 2022 00:31:58 -0500 Subject: [PATCH] explorer/sagas: rename tests --- src/explorer/sagas.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/explorer/sagas.test.ts b/src/explorer/sagas.test.ts index 806890c1..898ae83d 100644 --- a/src/explorer/sagas.test.ts +++ b/src/explorer/sagas.test.ts @@ -109,14 +109,14 @@ describe('handleExplorerRenameFile', () => { expect(action).toEqual(renameFileDialogShow('old.file')); }); - it('should do nothing if canceled', async () => { + it('should dispatch action if canceled', async () => { saga.put(renameFileDialogDidCancel()); const action = await saga.take(); expect(action).toEqual(explorerDidFailToRenameFile()); }); - describe('should attempt to rename file if accepted', () => { + describe('should dispatch fileStorage action if accepted', () => { beforeEach(async () => { saga.put(renameFileDialogDidAccept('old.file', 'new.file')); @@ -124,7 +124,7 @@ describe('handleExplorerRenameFile', () => { expect(action).toEqual(fileStorageRenameFile('old.file', 'new.file')); }); - test('and chain failure', async () => { + it('should dispatch action on fileStorage failure', async () => { saga.put( fileStorageDidFailToRenameFile( 'old.file', @@ -137,7 +137,7 @@ describe('handleExplorerRenameFile', () => { expect(action).toEqual(explorerDidFailToRenameFile()); }); - test('and chain success', async () => { + it('should dispatch action on fileStorage success', async () => { saga.put(fileStorageDidRenameFile('old.file', 'new.file')); const action = await saga.take();