Skip to content

Commit 52cb30e

Browse files
committed
fix tests
1 parent 94ab81c commit 52cb30e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/overlayscrollbars/test/dom/environment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ vi.useFakeTimers();
1212
const defaultInitialization = {
1313
elements: {
1414
host: null,
15-
padding: true,
15+
padding: expect.any(Boolean),
1616
viewport: expect.any(Function),
1717
content: false,
1818
},

packages/overlayscrollbars/test/dom/overlayscrollbars.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,10 @@ describe('overlayscrollbars', () => {
645645
test('env', () => {
646646
const env = OverlayScrollbars.env();
647647
const envObj = {
648-
scrollbarsSize: { x: 0, y: 0 },
649-
scrollbarsOverlaid: { x: true, y: true },
650-
scrollbarsHiding: false,
651-
scrollTimeline: false,
648+
scrollbarsSize: { x: expect.any(Number), y: expect.any(Number) },
649+
scrollbarsOverlaid: { x: expect.any(Boolean), y: expect.any(Boolean) },
650+
scrollbarsHiding: expect.any(Boolean),
651+
scrollTimeline: expect.any(Boolean),
652652
staticDefaultInitialization: expect.any(Object),
653653
staticDefaultOptions: expect.any(Object),
654654
getDefaultInitialization: expect.any(Function),

0 commit comments

Comments
 (0)