summaryrefslogtreecommitdiffstats
path: root/output/layout_base_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'output/layout_base_test.go')
-rw-r--r--output/layout_base_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/output/layout_base_test.go b/output/layout_base_test.go
index f20d99bef..16be615f2 100644
--- a/output/layout_base_test.go
+++ b/output/layout_base_test.go
@@ -141,6 +141,7 @@ func TestLayoutBase(t *testing.T) {
return this.needsBase, nil
}
+ this.d.OutputFormats = Formats{AMPFormat, HTMLFormat, RSSFormat, JSONFormat}
this.d.WorkingDir = filepath.FromSlash(this.d.WorkingDir)
this.d.LayoutDir = filepath.FromSlash(this.d.LayoutDir)
this.d.RelPath = filepath.FromSlash(this.d.RelPath)
@@ -150,6 +151,11 @@ func TestLayoutBase(t *testing.T) {
this.expect.MasterFilename = filepath.FromSlash(this.expect.MasterFilename)
this.expect.OverlayFilename = filepath.FromSlash(this.expect.OverlayFilename)
+ if strings.Contains(this.d.RelPath, "json") {
+ // currently the only plain text templates in this test.
+ this.expect.Name = "_text/" + this.expect.Name
+ }
+
id, err := CreateTemplateNames(this.d)
require.NoError(t, err)