From e9aa787adec890d6a12ae1c22f53775be8baba3c Mon Sep 17 00:00:00 2001 From: sundasnoreen12 Date: Mon, 17 Feb 2025 18:29:21 +0500 Subject: [PATCH] test: fixed test case --- src/profile/data/sagas.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/profile/data/sagas.test.js b/src/profile/data/sagas.test.js index 2ad7e60..133fd52 100644 --- a/src/profile/data/sagas.test.js +++ b/src/profile/data/sagas.test.js @@ -73,6 +73,13 @@ describe('RootSaga', () => { expect(gen.next().value).toEqual(select(userAccountSelector)); expect(gen.next(selectorData).value).toEqual(put(profileActions.fetchProfileBegin())); + expect(gen.next().value).toEqual(all([ + call(ProfileApiService.getAccount, 'gonzo'), + call(ProfileApiService.getCourseCertificates, 'gonzo'), + call(ProfileApiService.getCountryList), + call(ProfileApiService.getPreferences, 'gonzo'), + + ])); expect(gen.next(result).value) .toEqual(put(profileActions.fetchProfileSuccess(userAccount, result[3], result[1], true, []))); expect(gen.next().value).toEqual(put(profileActions.fetchProfileReset()));