Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame^] | 1 | # Copyright 2020 The Pigweed Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
| 15 | package(default_visibility = ["//visibility:public"]) |
| 16 | |
| 17 | load("@npm_bazel_typescript//:index.bzl", "ts_library") |
| 18 | load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test") |
| 19 | |
| 20 | |
| 21 | ts_library( |
| 22 | name = "transport_lib", |
| 23 | srcs = [ |
| 24 | "web_serial_transport.ts", |
| 25 | ], |
| 26 | deps = [], |
| 27 | ) |
| 28 | |
| 29 | ts_library( |
| 30 | name = "transport_lib_test", |
| 31 | testonly = True, |
| 32 | srcs = [ |
| 33 | "web_serial_transport_test.ts", |
| 34 | ], |
| 35 | deps = [ |
| 36 | ":transport_lib", |
| 37 | "@npm//jasmine", |
| 38 | "@npm//@types/jasmine", |
| 39 | ], |
| 40 | ) |
| 41 | |
| 42 | jasmine_node_test( |
| 43 | name = "test", |
| 44 | srcs = [ |
| 45 | ":transport_lib_test", |
| 46 | ], |
| 47 | deps = [ |
| 48 | ":transport_lib", |
| 49 | ], |
| 50 | ) |