# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/closure_compiler/compile_js.gni")
# Simple wrapper around js_library to describe a unit test.
template("js_unittest") {
js_library(target_name) {
testonly = true
# Forward everything that js_library forwards except testonly (omitting that
# causes gn to emit "Assignment had no effect" if it's added redundantly).
forward_variables_from(invoker,
[
"deps",
"externs_list",
"extra_deps",
"extra_sources",
"sources",
"visibility",
])
}
}