mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
9a64c06a20
Discovered while looking for something else. Updates tailscale/corp#18935 Signed-off-by: Maisem Ali <maisem@tailscale.com>
26 lines
620 B
Go
26 lines
620 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package jsdeps
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"tailscale.com/tstest/deptest"
|
|
)
|
|
|
|
func TestDeps(t *testing.T) {
|
|
deptest.DepChecker{
|
|
GOOS: "js",
|
|
GOARCH: "wasm",
|
|
BadDeps: map[string]string{
|
|
"testing": "do not use testing package in production code",
|
|
"runtime/pprof": "bloat",
|
|
"golang.org/x/net/http2/h2c": "bloat",
|
|
"net/http/pprof": "bloat",
|
|
"golang.org/x/net/proxy": "bloat",
|
|
"github.com/tailscale/goupnp": "bloat, which can't work anyway in wasm",
|
|
},
|
|
}.Check(t)
|
|
}
|