oficina / home Public

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

Plain git — no account needed to clone.

Download

Download this file

1package connect
2
3import (
4 "strings"
5 "testing"
6)
7
8// The apps render this copy. It never names the hub (Paul, 2026-09-23):
9// the account is "your Oficina account".
10func TestEnglishNeverNamesTheHub(t *testing.T) {
11 for k, v := range English {
12 if strings.Contains(v, "Home") {
13 t.Errorf("%s = %q names Home", k, v)
14 }
15 }
16 for state, want := range map[string]string{
17 "signedout": "You’re signed out",
18 "start": "Connect your Oficina account",
19 "unknown": "Oficina account not connected",
20 } {
21 if got := Page(state, "").Title; got != want {
22 t.Errorf("%s title = %q, want %q", state, got, want)
23 }
24 }
25 if got := Page("signedout", "").ActionLabel; got != "Sign in" {
26 t.Errorf("signedout action = %q, want %q", got, "Sign in")
27 }
28 if got := English["menu_action"]; got != "Connect your Oficina account" {
29 t.Errorf("menu_action = %q", got)
30 }
31}
32