mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-28 10:19:38 +01:00
21 lines
453 B
Go
21 lines
453 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package markup_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"code.gitea.io/gitea/modules/markup"
|
|
"code.gitea.io/gitea/modules/setting"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
setting.IsInTesting = true
|
|
markup.RenderBehaviorForTesting.DisableAdditionalAttributes = true
|
|
setting.Markdown.FileNamePatterns = []string{"*.md"}
|
|
markup.RefreshFileNamePatterns()
|
|
os.Exit(m.Run())
|
|
}
|