Mansi Shrivastava
7426dbbd56
refactor(common): allow HttpErrorResponse with successful status codes ( #61107 )
...
This adds the ability to mock out errors even when successful status codes are returned.
Fixes #26161
PR Close #61107
2025-06-25 17:01:18 +00:00
Andrew Kushnir
3fa7b2b136
refactor(common): convert scripts within packages/common to relative imports ( #60623 )
...
This commit updates scripts within `packages/common` to relative imports as a prep work to the upcoming infra updates.
PR Close #60623
2025-04-01 15:58:51 +00:00
Joey Perrott
9dbe6fc18b
refactor: update license text to point to angular.dev ( #57901 )
...
Update license text to point to angular.dev instead of angular.io
PR Close #57901
2024-09-24 15:33:00 +02:00
Joey Perrott
0460a9dfaf
refactor: migrate common to prettier formatting ( #54150 )
...
Migrate formatting to prettier for common from clang-format
PR Close #54150
2024-01-30 16:08:07 +00:00
Andrew Scott
03ab7053ce
build: fix test for useUnknownInCatch ( #44935 )
...
CI ran before the change to the tsconfig file
PR Close #44935
2022-02-01 23:40:17 +00:00
JoostK
a2cbffc06f
fix(common): include query parameters for open HTTP requests in verify ( #44917 )
...
When `HttpTestingController.verify` is used to verify that there are not open,
unexpected requests it would throw an error with the method and URL of all pending
requests, excluding the query parameters. This is confusing, as e.g. `expectOne`
matches a URL including its query parameters and `expectOne` does include the
query parameters when it reports when no request could be matched.
This commit changes the error that is reported by `verify` to include the query
parameters.
Closes #19974
PR Close #44917
2022-02-01 21:41:43 +00:00
Andrew Scott
fdfcef5a0a
build: enable useUnknownInCatchVariables ( #44679 )
...
This unblocks the internal migration to turn the option on in g3.
PR Close #44679
2022-02-01 18:17:29 +00:00
Joey Perrott
d1ea1f4c7f
build: update license headers to reference Google LLC ( #37205 )
...
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.
PR Close #37205
2020-05-26 14:26:58 -04:00
Joey Perrott
698b0288be
build: reformat repo to new clang@1.4.0 ( #36613 )
...
PR Close #36613
2020-04-14 12:08:36 -07:00
cexbrayat
c77cf717aa
test(common): unit test for http/testing expectOne with several requests ( #27005 )
...
PR Close #27005
2020-01-31 13:13:38 -08:00
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
cexbrayat
a622a281d3
test(common): unit tests for http/testing expectOne ( #27005 )
...
PR Close #27005
2020-01-31 13:13:37 -08:00
Greg Magolan
67ad8a2632
build: move rxjs type reference to event emitter ( #28720 )
...
PR Close #28720
2019-02-19 16:28:14 -08:00
Greg Magolan
25aae64274
build(bazel): do not build rxjs from source under Bazel ( #28720 )
...
PR Close #28720
2019-02-19 16:28:14 -08:00
Igor Minar
4f81a7c590
test(common): run @angular/common/http/testing tests under bazel ( #27386 )
...
PR Close #27386
2018-12-05 20:55:31 -08:00
George Kalpakas
e01b539ee5
refactor: infer type for it() assertion functions ( #19904 )
...
PR Close #19904
2018-07-06 13:48:02 -07:00
Alex Rickabaugh
8b14488827
fix(common): don't convert null to a string when flushing a mock request ( #21417 )
...
A bug in TestRequest caused null response bodies to be stringified. This
change causes null to be treated faithfully.
Fixes #20744
PR Close #21417
2018-02-01 08:32:43 -08:00