UNPKG

piral-core

Version:

The core library for creating a Piral instance.

15 lines (13 loc) 438 B
/** * @vitest-environment node */ import { describe, it, expect } from 'vitest'; import { getCurrentLayout } from './media'; describe('Media Module', () => { it('in here window should be undefined', () => { expect(typeof window).toBe('undefined'); const breakpoints = ['min-width: 200px', 'max-width: 199px']; const result = getCurrentLayout(breakpoints, ['foo', 'bar'], 'qxz'); expect(result).toBe('qxz'); }); });