Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
refactor: allow the test request to know the path
Browse files Browse the repository at this point in the history
The mock request used by tests knows the host and method, but not the path. This adds it.
  • Loading branch information
thewilkybarkid authored Jan 23, 2020
1 parent 87fd9ee commit 746ebdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default ({
host: 'example.com',
},
method,
url: path,
});

const response = Object.create(app.response) as WithDataset<Response>;
Expand Down

0 comments on commit 746ebdc

Please sign in to comment.