Skip to content

Instantly share code, notes, and snippets.

@AdamZaczek
Created May 4, 2017 10:57
Show Gist options
  • Save AdamZaczek/b9c3bc5140362f983c14dbecda82bb08 to your computer and use it in GitHub Desktop.
Save AdamZaczek/b9c3bc5140362f983c14dbecda82bb08 to your computer and use it in GitHub Desktop.
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