File size: 645 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { closeAccount, closeAccountSuccess } from 'calypso/state/account/actions';
import { ACCOUNT_CLOSE, ACCOUNT_CLOSE_SUCCESS } from 'calypso/state/action-types';

describe( 'actions', () => {
	describe( '#closeAccount', () => {
		test( 'should return an action when an account is closed', () => {
			const action = closeAccount();
			expect( action ).toEqual( {
				type: ACCOUNT_CLOSE,
			} );
		} );
	} );

	describe( '#closeAccountSuccess', () => {
		test( 'should dispatch an action when an account is closed successfully', () => {
			expect( closeAccountSuccess() ).toEqual( {
				type: ACCOUNT_CLOSE_SUCCESS,
			} );
		} );
	} );
} );