2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ts_library", "ts_web_test_suite")
|
2018-07-27 10:47:12 -04:00
|
|
|
|
|
|
|
ng_module(
|
|
|
|
name = "aot_routing_module",
|
|
|
|
srcs = ["aot_router_module.ts"],
|
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/router",
|
|
|
|
"@rxjs",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "aot_test_lib",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["aot_router_bootstrap.spec.ts"],
|
|
|
|
deps = [
|
|
|
|
":aot_routing_module",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/router",
|
|
|
|
"//packages/router/testing",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
|
|
deps = [
|
|
|
|
":aot_test_lib",
|
|
|
|
"//tools/testing:node",
|
|
|
|
],
|
|
|
|
)
|