oficina / fichas Public

Clone
git clone https://amadan.net/oficina/fichas

Plain git — no account needed to clone.

Download

Download this file

1package fichas
2
3import "testing"
4
5func TestReleaseTeamBinding(t *testing.T) {
6 for _, origin := range []string{"https://other.docs.oficina.works", "https://other.docs.OFICINA.WORKS", "https://other.docs.oficina.works."} {
7 if releaseTeam(origin, "ours") {
8 t.Errorf("accepted different team: %s", origin)
9 }
10 }
11 if !releaseTeam("https://ours.docs.oficina.works", "ours") || !releaseTeam("https://docs.oficina.works", "standalone") {
12 t.Fatal("valid explicit binding refused")
13 }
14}
15