diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-07-10 11:36:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-07-10 11:36:25 +0200 |
commit | 1d7f4413f55073b9ea9a9fc9dd4f1792915fe8e1 (patch) | |
tree | 70f84d613ccaf385024bad7dc022d2b3ae11a534 /helpers/content_test.go | |
parent | 4a48b5f32641c15e1f79aaf7aeef25216cdc0254 (diff) | |
download | hugo-1d7f4413f55073b9ea9a9fc9dd4f1792915fe8e1.tar.gz hugo-1d7f4413f55073b9ea9a9fc9dd4f1792915fe8e1.zip |
Consolidate the Render funcs
Diffstat (limited to 'helpers/content_test.go')
-rw-r--r-- | helpers/content_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/content_test.go b/helpers/content_test.go index a89b4992e..8aa645f6b 100644 --- a/helpers/content_test.go +++ b/helpers/content_test.go @@ -289,10 +289,10 @@ func TestGetMarkdownRenderer(t *testing.T) { } func TestGetMarkdownRendererWithTOC(t *testing.T) { - ctx := &RenderingContext{} + ctx := &RenderingContext{RenderTOC: true} ctx.Content = []byte("testContent") ctx.Config = ctx.getConfig() - actualRenderedMarkdown := markdownRenderWithTOC(ctx) + actualRenderedMarkdown := markdownRender(ctx) expectedRenderedMarkdown := []byte("<nav>\n</nav>\n\n<p>testContent</p>\n") if !bytes.Equal(actualRenderedMarkdown, expectedRenderedMarkdown) { t.Errorf("Actual rendered Markdown (%s) did not match expected markdown (%s)", actualRenderedMarkdown, expectedRenderedMarkdown) |