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(
72
72
73
73
assert
74
74
. dom ( '#test-application-state' )
75
- . doesNotHaveClass ( 'hds-application-state--is-auto-centered' ) ;
75
+ . hasClass ( 'hds-application-state--is-auto-centered' ) ;
76
76
} ) ;
77
77
78
78
test ( 'it should have the correct class when isAutoCentered is set to true' , async function ( assert ) {
@@ -87,6 +87,18 @@ module(
87
87
. hasClass ( 'hds-application-state--is-auto-centered' ) ;
88
88
} ) ;
89
89
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
+
90
102
// CONTEXTUAL COMPONENTS
91
103
92
104
test ( 'it renders the contextual components' , async function ( assert ) {
You can’t perform that action at this time.
0 commit comments