test(common): run @angular/common/http/testing tests under bazel (#27386)

PR Close #27386
This commit is contained in:
Igor Minar 2018-11-30 16:56:23 -08:00
parent 55e24d2602
commit 4f81a7c590
2 changed files with 31 additions and 4 deletions

View File

@ -0,0 +1,29 @@
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
ts_library(
name = "test_lib",
testonly = True,
srcs = glob(
["**/*.ts"],
),
deps = [
"//packages/common/http",
"//packages/common/http/testing",
],
)
jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
deps = [
":test_lib",
"//tools/testing:node",
],
)
ts_web_test_suite(
name = "test_web",
deps = [
":test_lib",
],
)

View File

@ -6,10 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ddescribe, describe, fit, it} from '@angular/core/testing/src/testing_internal';
import {HttpClient} from '../../src/client';
import {HttpClientTestingBackend} from '../src/backend';
import {HttpClient} from '@angular/common/http';
import {HttpClientTestingBackend} from '@angular/common/http/testing/src/backend';
describe('HttpClient TestRequest', () => {
it('accepts a null body', () => {