session.spec.js.snap 1.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`session actions should create an action for a successful login 1`] = `
Object {
  "payload": Object {
    "token": "token",
    "username": "username",
  },
  "type": "SESSION_SUCCESS",
}
`;

exports[`session actions should create an action for a successful user profile load 1`] = `
Object {
  "payload": Object {
    "displayName": "displayName",
    "photo": "photo",
  },
  "type": "SESSION_PROFILE_SUCCESS",
}
`;

exports[`session actions should create an action to init the session 1`] = `
Object {
  "type": "SESSION_INIT",
}
`;

exports[`session actions should create an action to load the user profile 1`] = `
Object {
  "payload": Object {
    "token": "token",
  },
  "type": "SESSION_PROFILE",
}
`;

exports[`session actions should create an action to log the user in 1`] = `
Object {
  "payload": Object {
    "pass": "password",
    "user": "username",
  },
  "type": "SESSION_LOGIN",
}
`;

exports[`session actions should create an action to log the user out 1`] = `
Object {
  "type": "SESSION_LOGOUT",
}
`;

exports[`session actions should create an action to notify invalid token 1`] = `
Object {
  "type": "SESSION_TOKEN_INVALID",
}
`;