From 37b9d62823f06e22a6da71d83fc1e441f3b6edc1 Mon Sep 17 00:00:00 2001 From: Fajar Nazmi Fadillah Date: Thu, 27 Feb 2025 15:47:55 +0700 Subject: [PATCH 1/2] chore; purposely fail test --- src/states/shared/action.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states/shared/action.test.js b/src/states/shared/action.test.js index c8154a6..1ab0c31 100644 --- a/src/states/shared/action.test.js +++ b/src/states/shared/action.test.js @@ -95,6 +95,6 @@ describe('asyncPopulateUsersAndThreads thunk', () => { // Assert expect(dispatch).toHaveBeenCalledWith(showLoading()); expect(dispatch).toHaveBeenCalledWith(hideLoading()); - expect(window.alert).toHaveBeenCalledWith(fakeErrorResponse.message); + expect(window.alert).not.toHaveBeenCalledWith(fakeErrorResponse.message); }); }); \ No newline at end of file From fb68f1405a500a754e93b1997f60ab366d5b27f3 Mon Sep 17 00:00:00 2001 From: Fajar Nazmi Fadillah Date: Thu, 27 Feb 2025 16:01:49 +0700 Subject: [PATCH 2/2] chore; fix error testcase --- src/states/shared/action.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states/shared/action.test.js b/src/states/shared/action.test.js index 1ab0c31..c8154a6 100644 --- a/src/states/shared/action.test.js +++ b/src/states/shared/action.test.js @@ -95,6 +95,6 @@ describe('asyncPopulateUsersAndThreads thunk', () => { // Assert expect(dispatch).toHaveBeenCalledWith(showLoading()); expect(dispatch).toHaveBeenCalledWith(hideLoading()); - expect(window.alert).not.toHaveBeenCalledWith(fakeErrorResponse.message); + expect(window.alert).toHaveBeenCalledWith(fakeErrorResponse.message); }); }); \ No newline at end of file