Skip to content

Commit e9aa787

Browse files
test: fixed test case
1 parent 01e2f1a commit e9aa787

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/profile/data/sagas.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ describe('RootSaga', () => {
7373

7474
expect(gen.next().value).toEqual(select(userAccountSelector));
7575
expect(gen.next(selectorData).value).toEqual(put(profileActions.fetchProfileBegin()));
76+
expect(gen.next().value).toEqual(all([
77+
call(ProfileApiService.getAccount, 'gonzo'),
78+
call(ProfileApiService.getCourseCertificates, 'gonzo'),
79+
call(ProfileApiService.getCountryList),
80+
call(ProfileApiService.getPreferences, 'gonzo'),
81+
82+
]));
7683
expect(gen.next(result).value)
7784
.toEqual(put(profileActions.fetchProfileSuccess(userAccount, result[3], result[1], true, [])));
7885
expect(gen.next().value).toEqual(put(profileActions.fetchProfileReset()));

0 commit comments

Comments
 (0)