docpad / docpad-plugin-paged

Adds support to DocPad for rendering a document into multiple pages.
Other
28 stars 11 forks source link

Newly cloned repository test failure #13

Closed namabuca closed 9 years ago

namabuca commented 10 years ago

Hi! Just cloned this repository to work on paging url representation, but i'm when running the cake test on a cloned repository and getting the following error:

paged with cleanurls on static > generate > results > same file content for: posts.html

actual:
<!DOCTYPEhtml><html><head><title>Blog</title><metahttp-equiv="REFRESH"content="0;url=/posts"><linkrel="canonical"href="/posts"/></head><body>Thispagehasmoved.Youwillbeautomatically
redirectedtoitsnewlocation.Ifyouaren'tforwardedtothenewpage,<ahref="/posts">clickhere</a>.</body></html>

expected:
<!DOCTYPEhtml><html><head><title>Blog</title><metahttp-equiv="REFRESH"content="0;url=/posts"></head><body>Thispagehasmoved.Youwillbeautomaticallyredirectedtoitsnewlocation.Ifyouare
n'tforwardedtothenewpage,<ahref="/posts">clickhere</a>.</body></html>

paged with cleanurls on static > generate > results > same file content for: posts.html ERR!
paged with cleanurls on static > generate > results ERR!
paged with cleanurls on static > generate ERR!
paged with cleanurls on static ERR!

FAILURE: 43/44 tests ran successfully; 1 failed, 0 incomplete, 1 errors

Error #1:
paged with cleanurls on static > generate > results > same file content for: posts.html
AssertionError: expected '<!DOCTYPEhtml><html><head><title>Blog</title><metahttp-equiv="REFRESH"content="0;url=/posts"><linkrel="canonical"href="/posts"/></head><body>Thispagehasmo
ved.Youwillbeautomaticallyredirectedtoitsnewlocation.Ifyouaren\'tforwardedtothenewpage,<ahref="/posts">clickhere</a>.</body></html>' to deeply equal '<!DOCTYPEhtml><html><head><tit
le>Blog</title><metahttp-equiv="REFRESH"content="0;url=/posts"></head><body>Thispagehasmoved.Youwillbeautomaticallyredirectedtoitsnewlocation.Ifyouaren\'tforwardedtothenewpage,<ahr
ef="/posts">clickhere</a>.</body></html>'

npm ERR! weird error 1
npm ERR! not ok code 0

I see that now the canonical tag: <linkrel="canonical"href="/posts"/> is added to generated posts.html while on test\out-expected-clean-static it is absent.

StormPooper commented 9 years ago

@namabuca the latest release has all of the tests passing, so please give this another go and let me know if it's working for you now.