// Copyright 2023 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package svg import ( "testing" "github.com/stretchr/testify/assert" ) func TestNormalize(t *testing.T) { res := Normalize([]byte("foo"), 1) assert.Equal(t, "foo", string(res)) res = Normalize([]byte(` content`), 1) assert.Equal(t, `content`, string(res)) res = Normalize([]byte(`content`), 16) assert.Equal(t, `content`, string(res)) }