mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): eslint + prettier → biome (#325)
This commit is contained in:
@@ -97,7 +97,7 @@ describe('onEvent', () => {
|
||||
passive: true,
|
||||
capture: true,
|
||||
once: true,
|
||||
}),
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('idleCallback', () => {
|
||||
expect.objectContaining({
|
||||
didTimeout: expect.any(Boolean),
|
||||
timeRemaining: expect.any(Function),
|
||||
}),
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('getSlottedElement', () => {
|
||||
const video = document.createElement('video');
|
||||
host.appendChild(video);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBe(video);
|
||||
});
|
||||
@@ -48,7 +48,7 @@ describe('getSlottedElement', () => {
|
||||
host.appendChild(video1);
|
||||
host.appendChild(video2);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBe(video1);
|
||||
});
|
||||
@@ -58,7 +58,7 @@ describe('getSlottedElement', () => {
|
||||
const span = document.createElement('span');
|
||||
host.appendChild(span);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
@@ -66,7 +66,7 @@ describe('getSlottedElement', () => {
|
||||
it('returns null when slot is empty', () => {
|
||||
const host = createHost();
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
@@ -76,7 +76,7 @@ describe('getSlottedElement', () => {
|
||||
const div = document.createElement('div');
|
||||
host.appendChild(div);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : false));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : false));
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
@@ -88,7 +88,7 @@ describe('getSlottedElement', () => {
|
||||
|
||||
const isMedia = (el: Element): el is HTMLMediaElement => el instanceof HTMLMediaElement;
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (isMedia(el) ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (isMedia(el) ? el : null));
|
||||
|
||||
expect(result).toBe(video);
|
||||
expect(result?.play).toBeDefined();
|
||||
@@ -119,7 +119,7 @@ describe('getSlottedElement', () => {
|
||||
video.slot = 'media';
|
||||
host.appendChild(video);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, 'media', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, 'media', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBe(video);
|
||||
});
|
||||
@@ -130,7 +130,7 @@ describe('getSlottedElement', () => {
|
||||
// No slot attribute - goes to default slot
|
||||
host.appendChild(video);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, 'media', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, 'media', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
@@ -141,8 +141,9 @@ describe('getSlottedElement', () => {
|
||||
video.slot = 'nonexistent';
|
||||
host.appendChild(video);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, 'nonexistent', el =>
|
||||
el instanceof HTMLVideoElement ? el : null);
|
||||
const result = getSlottedElement(host.shadowRoot!, 'nonexistent', (el) =>
|
||||
el instanceof HTMLVideoElement ? el : null
|
||||
);
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
@@ -167,7 +168,7 @@ describe('getSlottedElement', () => {
|
||||
const video = document.createElement('video');
|
||||
host.appendChild(video);
|
||||
|
||||
const result = getSlottedElement(host.shadowRoot!, '', el => (el instanceof HTMLVideoElement ? el : null));
|
||||
const result = getSlottedElement(host.shadowRoot!, '', (el) => (el instanceof HTMLVideoElement ? el : null));
|
||||
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user