File size: 540 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { isDomainUpsellDialogShown } from '../selectors';

describe( 'WpcomPlansUI selectors', () => {
	describe( 'isDomainUpsellDialogShown', () => {
		it( 'should retrieve the domain upsell dialog visibility', () => {
			const state = {
				showDomainUpsellDialog: true,
			};

			expect( isDomainUpsellDialogShown( state ) ).toBe( true );
		} );

		it( 'should retrieve false if domain upsell dialog visibility is undefined', () => {
			const state = {};

			expect( isDomainUpsellDialogShown( state ) ).toBe( false );
		} );
	} );
} );