mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 07:25:39 +00:00
5ab17bd3dd
Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: Iabf9fc4e158f45e4fc385f2b4c2e55ba01351c5c
25 lines
532 B
Go
25 lines
532 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{
|
|
"runtime/pprof": "bloat",
|
|
"golang.org/x/net/http2/h2c": "bloat",
|
|
"net/http/pprof": "bloat",
|
|
"golang.org/x/net/proxy": "bloat",
|
|
"github.com/huin/goupnp": "bloat, which can't work anyway in wasm",
|
|
},
|
|
}.Check(t)
|
|
}
|