Skip to content

Commit

Permalink
assert when the upload helper can't find the selector
Browse files Browse the repository at this point in the history
also, fix the assertion so it uses normal syntax instead
of ember-cli-page-object `findElement` syntax
  • Loading branch information
tim-evans committed Feb 7, 2017
1 parent 32c0c3c commit 03ca109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-support/helpers/upload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*global triggerEvent, find */

export default function (selector, file, filename) {
let input = find(this, selector)[0];
let input = findWithAssert(selector)[0];

file.name = filename;

Expand Down

0 comments on commit 03ca109

Please sign in to comment.