Skip to content

Commit 111ae3d

Browse files
fix: unit test
1 parent d3e3627 commit 111ae3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/modules/user/test/unit/store/actions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ describe('User actions', () => {
396396

397397
(userActions as any).clearCurrentUser(contextMock)
398398

399-
expect(contextMock.commit).toHaveBeenNthCalledWith(1, types.USER_TOKEN_CHANGED, '')
399+
expect(contextMock.commit).toHaveBeenNthCalledWith(1, types.USER_TOKEN_CHANGED, { newToken: null })
400400
expect(contextMock.commit).toHaveBeenNthCalledWith(2, types.USER_GROUP_TOKEN_CHANGED, '')
401401
expect(contextMock.commit).toHaveBeenNthCalledWith(3, types.USER_GROUP_CHANGED, null)
402402
expect(contextMock.commit).toHaveBeenNthCalledWith(4, types.USER_INFO_LOADED, null)

0 commit comments

Comments
 (0)