UNPKG
@conveyal/commute
Version:
latest (0.3.2)
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
0.0.1
Commute analysis
github.com/conveyal/commute
conveyal/commute
@conveyal/commute
/
__tests__
/
client
/
actions
/
user.js
13 lines
(10 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/* global describe, expect, it */
import
*
as
user
from
'../../../client/actions/user'
describe
(
'actions > user'
,
() =>
{
it
(
'logout should work'
,
() =>
{
window
.
localStorage
= {
removeItem
:
() =>
{} }
expect
(user.
logout
()).
toMatchSnapshot
() }) })