Skip to content

Commit

Permalink
isDisabled: Return early if findTargetElement() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 19, 2018
1 parent 868f32f commit 615fd23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/assertions/is-disabled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default function isDisabled(message) {
let element = this.findTargetElement();
if (!element) return;

let expected = `Element ${this.targetDescription} is disabled`;
let actual = `Element ${this.targetDescription} is disabled`;
Expand Down

0 comments on commit 615fd23

Please sign in to comment.