Skip to content

Commit cdc0dab

Browse files
authored
feat(cdk-experimental/tabs): add setDefaultState and unit tests, refactor the content children strategy (angular#31374)
1 parent 377e667 commit cdc0dab

File tree

5 files changed

+965
-77
lines changed

5 files changed

+965
-77
lines changed

src/cdk-experimental/tabs/BUILD.bazel

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//tools:defaults.bzl", "ng_project")
1+
load("//tools:defaults.bzl", "ng_project", "ng_web_test_suite", "ts_project")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -16,3 +16,22 @@ ng_project(
1616
"//src/cdk/bidi",
1717
],
1818
)
19+
20+
ts_project(
21+
name = "unit_test_sources",
22+
testonly = True,
23+
srcs = [
24+
"tabs.spec.ts",
25+
],
26+
deps = [
27+
":tabs",
28+
"//:node_modules/@angular/core",
29+
"//:node_modules/@angular/platform-browser",
30+
"//src/cdk/testing/private",
31+
],
32+
)
33+
34+
ng_web_test_suite(
35+
name = "unit_tests",
36+
deps = [":unit_test_sources"],
37+
)

0 commit comments

Comments
 (0)