fix: Panel height should be 100% when casted (#1750)

This commit is contained in:
Dermot Duffy
2024-12-13 08:11:26 -08:00
committed by GitHub
parent e0335c529c
commit ed0bb99a45
7 changed files with 53 additions and 19 deletions
+26
View File
@@ -0,0 +1,26 @@
import { describe, expect, it, vi } from 'vitest';
import { isBeingCasted } from '../../src/utils/casting.js';
describe('isBeingCasted', () => {
it('should confirm being casted', () => {
vi.stubGlobal('navigator', {
userAgent:
'Mozilla/5.0 (Fuchsia) AppleWebKit/537.36 (KHTML, like Gecko) ' +
'Chrome/114.0.0.0 Safari/537.36 CrKey/1.56.500000',
});
// Import the function
expect(isBeingCasted()).toBeTruthy();
});
it('should confirm not being casted', () => {
vi.stubGlobal('navigator', {
userAgent:
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) ' +
'Chrome/131.0.0.0 Safari/537.36',
});
// Import the function
expect(isBeingCasted()).toBeFalsy();
});
});