Skip to content

Commit 6f12879

Browse files
committed
fixing test
1 parent 48d489d commit 6f12879

File tree

1 file changed

+13
-1
lines changed
  • showcase/tests/integration/components/hds/application-state

1 file changed

+13
-1
lines changed

showcase/tests/integration/components/hds/application-state/index-test.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)