mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
tests: do not print warnings to console
This commit is contained in:
parent
ad04636073
commit
df4bb0a17f
|
@ -55,7 +55,7 @@ function verifyNoBrowserErrors() {
|
||||||
if (message.match(/This site makes use of a SHA-1 Certificate/)) return false;
|
if (message.match(/This site makes use of a SHA-1 Certificate/)) return false;
|
||||||
|
|
||||||
|
|
||||||
if (logEntry.level.value >= LogLevel.INFO) {
|
if (logEntry.level.value > LogLevel.WARNING) {
|
||||||
if (message.length > MAX_ERROR_MESSAGE_SYMBOLS) {
|
if (message.length > MAX_ERROR_MESSAGE_SYMBOLS) {
|
||||||
message = message.substr(0, MAX_ERROR_MESSAGE_SYMBOLS) + '...';
|
message = message.substr(0, MAX_ERROR_MESSAGE_SYMBOLS) + '...';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user