Skip to content

Commit

Permalink
Merge pull request #152 from angrykoala/dev
Browse files Browse the repository at this point in the history
0.7.6
  • Loading branch information
angrykoala authored Jun 13, 2018
2 parents cd4b21f + 68c49c0 commit 901a53a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.7.6 / 2018-06-13
==================

* Fixed request interceptor unhandled error

0.7.5 / 2018-06-12
==================

Expand Down
3 changes: 1 addition & 2 deletions lib/modules/browser_requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module.exports = class BrowserRequests extends BrowserModule {
_beforeClose() {
this.clearMocks();
this.clearRequests();
return this._startRequestInterceptor();
}

_startRequestInterceptor() {
Expand All @@ -58,7 +57,7 @@ module.exports = class BrowserRequests extends BrowserModule {
const mockedResponse = this._requestMocker.getMockedResponse(request);
if(mockedResponse) {
return request.respond(mockedResponse);
} else{
} else {
return request.continue();
}
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wendigo",
"version": "0.7.5",
"version": "0.7.6",
"description": "A proper monster for front-end automated testing",
"engines": {
"node": ">=8.0.0"
Expand Down
5 changes: 5 additions & 0 deletions tests/browser_components/request_mocker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,9 @@ describe("Requests Mocker", function() {
await browser.wait(100);
await browser.assert.text("#result", "MOCK");
});

it("Interceptor Is Ready After Close", async () => {
await browser.close();
assert.strictEqual(browser.requests._interceptorReady, true);
});
});

0 comments on commit 901a53a

Please sign in to comment.