Skip to content

Commit

Permalink
fix(render): Don't prepend / to output path in React render
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Berg committed Oct 17, 2015
1 parent a7dba30 commit ddf70ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/render/react.js
Expand Up @@ -26,7 +26,7 @@ function rendererModel(renderPath, context) {
}

const file = new File({
path: `/${nakedPath}.html`,
path: `${nakedPath}.html`,
contents: new Buffer(contents),
});

Expand Down
2 changes: 1 addition & 1 deletion test/render/react.js
Expand Up @@ -81,7 +81,7 @@ describe('renderer', () => {
const stream = renderer(fileContext);

stream.on('data', (file) => {
expect(file.path).to.equal('/test/file.html');
expect(file.path).to.equal('test/file.html');
});

stream.on('end', () => {
Expand Down

0 comments on commit ddf70ef

Please sign in to comment.