Skip to content

Commit e534729

Browse files
committed
Update unit test to account for removed Composing card
1 parent 9e476f3 commit e534729

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_inc/client/components/settings-card/test/component.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ describe( 'SettingsCard', () => {
7373
'photon'
7474
],
7575
allCardsForNonAdmin = [
76-
'composing',
7776
'post-by-email'
7877
];
7978

@@ -172,13 +171,13 @@ describe( 'SettingsCard', () => {
172171
userCanManageModules: false
173172
} );
174173

175-
it( 'does not render cards that are not Composing or Post by Email', () => {
174+
it( 'does not render cards that are not Post by Email', () => {
176175
allCardsNonAdminCantAccess.forEach( item => {
177176
expect( shallow( <SettingsCard { ...testProps } module={ item } ><p>Child</p></SettingsCard> ).find( 'form' ) ).to.have.length( 0 );
178177
} );
179178
} );
180179

181-
it( 'renders Composing and Post by Email cards', () => {
180+
it( 'renders Post by Email cards', () => {
182181
allCardsForNonAdmin.forEach( item => {
183182
expect( shallow( <SettingsCard { ...testProps } module={ item } ><p>Child</p></SettingsCard> ).find( 'form' ) ).to.have.length( 1 );
184183
} );

0 commit comments

Comments
 (0)