Skip to content

Commit

Permalink
Remove unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Apr 14, 2019
1 parent 80010a9 commit 1e3d419
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function render({ filename, files, metadata, engineOptions }) {
// Stop if the current extension can't be transformed
if (!transform) {
debug(`no transformer available for ${ext} extension for ${filename}`);
extensions.push(ext);
return Promise.resolve();
}

Expand Down
22 changes: 22 additions & 0 deletions lib/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,26 @@ describe('metalsmith-in-place', () => {
done();
});
});

it('should allow extending with pug templates', done => {
const base = path.join(
process.cwd(),
'test',
'fixtures',
'ignore-extension-without-jstransformer'
);
const actual = path.join(base, 'build');
const expected = path.join(base, 'expected');
const metalsmith = new Metalsmith(base);

rimraf.sync(actual);

return metalsmith.use(plugin()).build(err => {
if (err) {
return done(err);
}
expect(() => equal(actual, expected)).not.toThrow();
return done();
});
});
});

0 comments on commit 1e3d419

Please sign in to comment.