Skip to content

Commit dd0dabe

Browse files
committed
refactor: add deprecation notice to hasStyle
1 parent 2d4b999 commit dd0dabe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wrappers/wrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ export default class Wrapper implements BaseWrapper {
185185
* Checks if wrapper has a style with value
186186
*/
187187
hasStyle (style: string, value: string) {
188+
warn('hasStyle() has been deprecated and will be removed in version 1.0.0. Use wrapper.element.style instead')
189+
188190
if (typeof style !== 'string') {
189191
throwError('wrapper.hasStyle() must be passed style as a string')
190192
}

0 commit comments

Comments
 (0)