Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
fix: linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed May 19, 2017
1 parent 78cb8b2 commit 8052bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/__tests__/element.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('given an element is created', () => {

beforeEach(() => {
element = new Element('<elementName>', '<elementSelector>', 1);
error = new Error('Unable to locate element: ' + element);
error = new Error('Unable to locate element: ' + element.toString());
});

describe('when element.tagName is accessed', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class Element {
const element = elements[this._index];

if (!element) {
throw new Error('Unable to locate element: ' + this);
throw new Error('Unable to locate element: ' + this.toString());
}

return element;
Expand Down

0 comments on commit 8052bf2

Please sign in to comment.