File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
showcase/tests/integration/components/hds/application-state Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ module(
7272
7373 assert
7474 . dom ( '#test-application-state' )
75- . doesNotHaveClass ( 'hds-application-state--is-auto-centered' ) ;
75+ . hasClass ( 'hds-application-state--is-auto-centered' ) ;
7676 } ) ;
7777
7878 test ( 'it should have the correct class when isAutoCentered is set to true' , async function ( assert ) {
@@ -87,6 +87,18 @@ module(
8787 . hasClass ( 'hds-application-state--is-auto-centered' ) ;
8888 } ) ;
8989
90+ test ( 'it should have the correct class when isAutoCentered is set to false' , async function ( assert ) {
91+ await render ( hbs `
92+ <Hds::ApplicationState id="test-application-state" @isAutoCentered={{false}}>
93+ template block text
94+ </Hds::ApplicationState>
95+ ` ) ;
96+
97+ assert
98+ . dom ( '#test-application-state' )
99+ . doesNotHaveClass ( 'hds-application-state--is-auto-centered' ) ;
100+ } ) ;
101+
90102 // CONTEXTUAL COMPONENTS
91103
92104 test ( 'it renders the contextual components' , async function ( assert ) {
You can’t perform that action at this time.
0 commit comments