Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit c7f91b0

Browse files
committed
Throw err when beforeEach.withApp is not called
1 parent 76953fa commit c7f91b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/helpers.js

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ _describe.whenCalledRemotely = function(verb, url, data, cb) {
236236
var methodForVerb = verb.toLowerCase();
237237
if(methodForVerb === 'delete') methodForVerb = 'del';
238238

239+
if (this.request === undefined) {
240+
throw new Error('App is not specified. Please use lt.beforeEach.withApp to specify the app.');
241+
}
242+
239243
this.http = this.request[methodForVerb](this.url);
240244
delete this.url;
241245
this.http.set('Accept', 'application/json');

0 commit comments

Comments
 (0)