mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 16:37:19 -04:00
Move expected test results to testdata/
This commit is contained in:
@@ -16,8 +16,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
examplesDir = "../styles/examples/"
|
|
||||||
generate = false
|
generate = false
|
||||||
|
examplesDir = "../styles/examples/"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRenderer(t *testing.T) {
|
func TestRenderer(t *testing.T) {
|
||||||
@@ -29,7 +29,7 @@ func TestRenderer(t *testing.T) {
|
|||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
bn := strings.TrimSuffix(filepath.Base(f), ".md")
|
bn := strings.TrimSuffix(filepath.Base(f), ".md")
|
||||||
sn := filepath.Join(examplesDir, bn+".style")
|
sn := filepath.Join(examplesDir, bn+".style")
|
||||||
tn := filepath.Join(examplesDir, bn+".test")
|
tn := filepath.Join("../testdata", bn+".test")
|
||||||
|
|
||||||
in, err := ioutil.ReadFile(f)
|
in, err := ioutil.ReadFile(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user