File size: 404 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { CURRENT_USER_RECEIVE } from 'calypso/state/action-types';
import { setCurrentUser } from '../actions';

describe( 'actions', () => {
	describe( '#setCurrentUser()', () => {
		test( 'should return an action object', () => {
			const action = setCurrentUser( { ID: 73705554 } );

			expect( action ).toEqual( {
				type: CURRENT_USER_RECEIVE,
				user: { ID: 73705554 },
			} );
		} );
	} );
} );