Skip to content

Commit d11ed52

Browse files
authored
test(material/slider): clean up harness testing setup (#22670)
Now that we know that the MDC-based slider won't have the same API as the non-MDC version, we can avoid sharing the test harness tests and clean up some of the logic.
1 parent 287834a commit d11ed52

File tree

4 files changed

+188
-223
lines changed

4 files changed

+188
-223
lines changed

src/material-experimental/mdc-slider/testing/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ng_test_library(
2424
"//src/cdk/testing",
2525
"//src/cdk/testing/testbed",
2626
"//src/material-experimental/mdc-slider",
27-
"//src/material/slider/testing:harness_tests_lib",
2827
],
2928
)
3029

src/material/slider/testing/BUILD.bazel

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,18 @@ filegroup(
2020
srcs = glob(["**/*.ts"]),
2121
)
2222

23-
ng_test_library(
24-
name = "harness_tests_lib",
25-
srcs = ["shared.spec.ts"],
26-
deps = [
27-
":testing",
28-
"//src/cdk/testing",
29-
"//src/cdk/testing/testbed",
30-
"//src/material/slider",
31-
"@npm//@angular/forms",
32-
"@npm//@angular/platform-browser",
33-
],
34-
)
35-
3623
ng_test_library(
3724
name = "unit_tests_lib",
3825
srcs = glob(
3926
["**/*.spec.ts"],
40-
exclude = ["shared.spec.ts"],
4127
),
4228
deps = [
43-
":harness_tests_lib",
4429
":testing",
30+
"//src/cdk/testing",
31+
"//src/cdk/testing/testbed",
4532
"//src/material/slider",
33+
"@npm//@angular/forms",
34+
"@npm//@angular/platform-browser",
4635
],
4736
)
4837

src/material/slider/testing/shared.spec.ts

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)