0.3.03
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/ponzischeme89/memby/server/internal/config"
|
||||
"github.com/ponzischeme89/memby/server/internal/store"
|
||||
)
|
||||
|
||||
func TestRemoteConfigSupportsETagRevalidationWithoutAuthentication(t *testing.T) {
|
||||
@@ -31,3 +33,15 @@ func TestRemoteConfigSupportsETagRevalidationWithoutAuthentication(t *testing.T)
|
||||
t.Fatalf("revalidation status = %d", second.Code)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGlobalFontFamilyConfigurationIsDelivered(t *testing.T) {
|
||||
document := config.DefaultRemoteConfig()
|
||||
policy := store.DefaultFeaturePolicy()
|
||||
policy.Values["presentation.fontFamily"] = json.RawMessage(`"inter"`)
|
||||
|
||||
applyGlobalConfiguration(&document, policy)
|
||||
|
||||
if document.Presentation.FontFamily != "inter" {
|
||||
t.Fatalf("font family = %q, want inter", document.Presentation.FontFamily)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user