Avoid using string interpolation syntax

This commit is contained in:
Mislav Marohnić 2017-06-27 16:13:05 +02:00
Родитель eed59ae3d8
Коммит 9d6fccea71
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -87,7 +87,7 @@
this.name = 'ImageWithoutAltAttributeError'
this.stack = new Error().stack
this.element = element
this.message = `Missing alt attribute on ${element.outerHTML}`
this.message = 'Missing alt attribute on ' + element.outerHTML
}
errorSubclass(ImageWithoutAltAttributeError)
@ -95,7 +95,7 @@
this.name = 'ElementWithoutLabelError'
this.stack = new Error().stack
this.element = element
this.message = `Missing text, title, or aria-label attribute on ${element.outerHTML}`
this.message = 'Missing text, title, or aria-label attribute on ' + element.outerHTML
}
errorSubclass(ElementWithoutLabelError)
@ -103,7 +103,7 @@
this.name = 'LinkWithoutLabelOrRoleError'
this.stack = new Error().stack
this.element = element
this.message = `Missing href or role=button on ${element.outerHTML}`
this.message = 'Missing href or role=button on ' + element.outerHTML
}
errorSubclass(LinkWithoutLabelOrRoleError)
@ -111,7 +111,7 @@
this.name = 'LabelMissingControl'
this.stack = new Error().stack
this.element = element
this.message = `Label missing control on ${element.outerHTML}`
this.message = 'Label missing control on ' + element.outerHTML
}
errorSubclass(LabelMissingControl)
@ -119,7 +119,7 @@
this.name = 'ButtonWithoutLabelError'
this.stack = new Error().stack
this.element = element
this.message = `Missing text or aria-label attribute on ${element.outerHTML}`
this.message = 'Missing text or aria-label attribute on ' + element.outerHTML
}
errorSubclass(ButtonWithoutLabelError)
@ -127,7 +127,7 @@
this.name = 'ARIAAttributeMissingError'
this.stack = new Error().stack
this.element = element
this.message = `Missing ${attr} attribute on ${element.outerHTML}`
this.message = 'Missing '+attr+' attribute on ' + element.outerHTML
}
errorSubclass(ARIAAttributeMissingError)