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

update to es6 promises and remove when dependency #267

Merged
merged 2 commits into from
Sep 24, 2019

Conversation

ccarruitero
Copy link
Contributor

No description provided.

@willdurand
Copy link
Member

That looks like something we want. What do you think @kumar303?

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems fine but I haven't had a chance to test it.

response.responseBody);

if (response.responseError instanceof Error) {
throw response.responseError;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still work the same as before? I'm not sure what was going on with the callbacks.

Copy link
Contributor

@kumar303 kumar303 Sep 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, do tests that rely on error responses still get the same behavior? To research it, you could try and make one of the tests fail that was relying on this mock.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kumar303 sorry for delay.

There are some test that relay on the mock error response (1, 2), but let me know if you consider to add any other test.

@kumar303
Copy link
Contributor

@ccarruitero this would need to be rebased on master to pick up the new package.json

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again, this looks great. I tested the MockRequest changes and everything works as expected.

@kumar303 kumar303 merged commit 817e651 into mozilla:master Sep 24, 2019
kumar303 added a commit that referenced this pull request Sep 24, 2019
This was referenced Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants