Skip to content

Stop stubbing fetch and fetchJson in A4A tests#10594

Merged
keithwrightbos merged 4 commits intoampproject:masterfrom
google:custom-fetch-mock
Jul 24, 2017
Merged

Stop stubbing fetch and fetchJson in A4A tests#10594
keithwrightbos merged 4 commits intoampproject:masterfrom
google:custom-fetch-mock

Conversation

@taymonbeal
Copy link
Copy Markdown
Member

Tests now directly stub window.fetch using a hand-rolled FetchMock class. This will facilitate refactoring of the keyset fetcher.

One of the PRs that #9040 is being split into. Related to #7618. Follow-up to #10269.

route.called = true;
return Promise.resolve(
typeof route.response == 'function' ? route.response() :
route.response)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was this the intended spacing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

gulp lint did that. I'll see if I can find anything less ugly that it's happy with...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants