test(common): run @angular/common/http/testing tests under bazel (#27386)
PR Close #27386
This commit is contained in:
parent
55e24d2602
commit
4f81a7c590
|
@ -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",
|
||||||
|
],
|
||||||
|
)
|
|
@ -6,10 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* 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 '@angular/common/http';
|
||||||
|
import {HttpClientTestingBackend} from '@angular/common/http/testing/src/backend';
|
||||||
import {HttpClient} from '../../src/client';
|
|
||||||
import {HttpClientTestingBackend} from '../src/backend';
|
|
||||||
|
|
||||||
describe('HttpClient TestRequest', () => {
|
describe('HttpClient TestRequest', () => {
|
||||||
it('accepts a null body', () => {
|
it('accepts a null body', () => {
|
||||||
|
|
Loading…
Reference in New Issue