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
This commit is contained in:
Alex Rickabaugh
2018-01-09 08:25:01 -08:00
parent f9fa157a09
commit 8b14488827
3 changed files with 36 additions and 13 deletions

View File

@ -5,7 +5,12 @@ load("//tools:defaults.bzl", "ts_library")
ts_library(
name = "testing",
testonly = 1,
srcs = glob(["**/*.ts"]),
srcs = glob(
[
"*.ts",
"src/**/*.ts",
],
),
module_name = "@angular/common/http/testing",
deps = [
"//packages/common/http",