File size: 830 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import {
	LAYOUT_FOCUS_SET,
	LAYOUT_NEXT_FOCUS_SET,
	LAYOUT_NEXT_FOCUS_ACTIVATE,
} from 'calypso/state/action-types';
import { setLayoutFocus, setNextLayoutFocus, activateNextLayoutFocus } from '../actions';

describe( 'actions', () => {
	describe( 'setLayoutFocus', () => {
		test( 'returns an appropriate action', () => {
			expect( setLayoutFocus( 'foo' ) ).toEqual( { type: LAYOUT_FOCUS_SET, area: 'foo' } );
		} );
	} );

	describe( 'setNextLayoutFocus', () => {
		test( 'returns an appropriate action', () => {
			expect( setNextLayoutFocus( 'foo' ) ).toEqual( { type: LAYOUT_NEXT_FOCUS_SET, area: 'foo' } );
		} );
	} );

	describe( 'activateNextLayoutFocus', () => {
		test( 'returns an appropriate action', () => {
			expect( activateNextLayoutFocus() ).toEqual( { type: LAYOUT_NEXT_FOCUS_ACTIVATE } );
		} );
	} );
} );