-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(picker-column): cssClass is set on column (#26658)
resolves #26653
- Loading branch information
1 parent
1115203
commit c6620c7
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
core/src/components/picker-column/test/picker-column.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { h } from '@stencil/core'; | ||
import { newSpecPage } from '@stencil/core/testing'; | ||
import { PickerColumnCmp } from '../picker-column'; | ||
|
||
describe('picker-column', () => { | ||
it('should add class to host of component', async () => { | ||
const col = { cssClass: 'test-class', options: [] }; | ||
|
||
const page = await newSpecPage({ | ||
components: [PickerColumnCmp], | ||
template: () => <ion-picker-column col={col}></ion-picker-column>, | ||
}); | ||
|
||
const pickerCol = page.body.querySelector('ion-picker-column'); | ||
expect(pickerCol.classList.contains('test-class')).toBe(true); | ||
}); | ||
}); |