generated from VLADIMIR/template
add docs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package docs
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestLegalDocsEmbedded(t *testing.T) {
|
||||
for _, name := range []string{"TERMS.md", "PRIVACY.md", "CONSENT.md"} {
|
||||
data, err := FS.ReadFile(name)
|
||||
if err != nil {
|
||||
t.Errorf("документ %s не встроен: %v", name, err)
|
||||
continue
|
||||
}
|
||||
if len(data) == 0 {
|
||||
t.Errorf("документ %s пустой", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user