mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
B122 — fix unit assertion for responsive overflow classes
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
5b6af56b22
commit
8a64e330e6
1 changed files with 3 additions and 2 deletions
|
|
@ -210,8 +210,9 @@ describe('CampaignHomeActionStrip', () => {
|
|||
expect(list).toBeTruthy()
|
||||
expect(list?.className).toMatch(/grid-cols-2/)
|
||||
expect(list?.className).toMatch(/md:flex/)
|
||||
expect(region?.className).not.toMatch(/overflow-x-auto/)
|
||||
expect(region?.className).toMatch(/md:overflow-x-auto/)
|
||||
const regionClasses = region?.className.split(/\s+/) ?? []
|
||||
expect(regionClasses).not.toContain('overflow-x-auto')
|
||||
expect(regionClasses.some((token) => token.includes('md:overflow-x-auto'))).toBe(true)
|
||||
})
|
||||
|
||||
it('scrolls horizontally on pointer-fine drag past the threshold', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue