angular/packages/common/http/test
Kristiyan Kostadinov c07805612f test(core): clean up unnecessary nesting in old tests (#52239)
A lot of our tests are wrapped in `{}` which serves no purpose, aside from increasing the nesting level and, in some cases, causing confusion. The braces appear to be a leftover from a time when all tests were wrapped in a `function main() {}`. The function declaration was removed in #21053, but the braces remained, presumably because it was easier to search&replace for `function main()`, but not to remove the braces at the same time.

PR Close #52239
2023-10-19 09:26:15 -07:00
..
BUILD.bazel build: migrate to node 18 (#51609) 2023-09-01 15:12:43 +00:00
client_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
context_spec.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
fetch_spec.ts fix(http): use serializeBody to support JSON payload in FetchBackend (#50776) 2023-06-20 13:31:25 -07:00
headers_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
jsonp_mock.ts refactor(http): change <script>'s ownerDocument in jsonp teardown (#36807) 2022-02-24 17:24:33 +00:00
jsonp_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
module_spec.ts refactor(common): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
params_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
provider_spec.ts refactor(http): warn when HttpClient doesn't use fetch during SSR (#52037) 2023-10-05 16:52:41 -07:00
request_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
response_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
transfer_cache_spec.ts feat(http): allow customization of the HttpTransferCache. (#52029) 2023-10-06 12:12:47 -07:00
xhr_mock.ts fix(common): incorrect error type for XHR errors in TestRequest (#36082) 2021-11-19 21:26:52 +00:00
xhr_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
xsrf_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00