/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/utils/rtl/dir.spec.ts
26 строк
627 B
Liam DeBeasi
lint(eslint): migrate to eslint and prettier (#25046)
04 апр 2022, 18:12
Не верифицирован
04 апр 2022, 18:12
5676bab
Код
Авторство
О чём код?
import { isRTL } from './dir'; describe('rtl: dir', () => { describe('with host element', () => { it('should return true', () => { expect(isRTL({ dir: 'rtl' })).toBe(true); }); it('should return false', () => { expect(isRTL({ dir: 'ltr' })).toBe(false); expect(isRTL({ dir: '' })).toBe(false); }); }); describe('without host element', () => { it('should return true', () => { global.document.dir = 'rtl'; expect(isRTL()).toBe(true); }); it('should return false', () => { global.document.dir = 'ltr'; expect(isRTL()).toBe(false); }); }); });