angular-cn/packages/common/http/testing/src
cexbrayat 115b7e42c6 fix(common): http/testing expectOne lists the received requests if no matches (#27005)
Fixes #18013

Previously it was hard to debug an `expectOne` if the request had no match, as the error message was:

    Expected one matching request for criteria "Match URL: /some-url?query=hello", found none.

This commit adds a bit more info to the error, by listing the actual requests received:

    Expected one matching request for criteria "Match URL: /some-url?query=hello", found none. Requests received are: POST /some-url?query=world.

PR Close #27005
2020-01-31 13:13:37 -08:00
..
api.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
backend.ts fix(common): http/testing expectOne lists the received requests if no matches (#27005) 2020-01-31 13:13:37 -08:00
module.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
request.ts docs(http): add information about body content type to flush method for testing (#29214) 2019-04-01 11:03:49 -07:00