Created
May 4, 2017 10:57
-
-
Save AdamZaczek/b9c3bc5140362f983c14dbecda82bb08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should return iMList once fetched', () => { | |
const action = { | |
type: FETCH_IM_LIST_SUCCESS, | |
payload: { | |
data: { | |
ok: true, | |
ims: [ | |
{ | |
id: "D4VAKS265", | |
created: 1491558944, | |
is_im: true, | |
is_org_shared: false, | |
user: "U02EJ97U3", | |
is_user_deleted: false, | |
}, | |
{ | |
id: "D4D9RH129", | |
created: 1488536442, | |
is_im: true, | |
is_org_shared: false, | |
user: "U02GMV04R", | |
is_user_deleted: false, | |
}, | |
], | |
}, | |
}, | |
}; | |
expect(slackData({ iMList: [] }, action)).toMatchSnapshot(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment