/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/aria/private/utils/violations.ts
17 строк
561 B
Andrey Dolgachev
test(multiple): check for incorrect usage of Angular Aria directives and log violations (#33195)
12 май 2026, 23:40
Не верифицирован
12 май 2026, 23:40
33593e7
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** Logs each of the violations to the console as errors, optionally with the host element context. */ export function reportViolations(violations: string[], element: Element): void { if (violations.length) { console.warn('Violations found on element: %o:', element); violations.forEach(violation => { console.warn(violation); }); } }