Skip to content

Commit 240d6f6

Browse files
committedOct 30, 2017
add test for docx
1 parent ca08334 commit 240d6f6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎test/test.js

+14
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ describe('metalsmith-pandoc', function(){
3030
});
3131
});
3232

33+
it('should convert markdown files to docx', function(done){
34+
Metalsmith('test')
35+
.use(pandoc({
36+
to: 'docx',
37+
ext: '.docx'
38+
}))
39+
.destination('build-docx')
40+
.build(function(err){
41+
if (err) return done(err);
42+
equal('test/build-docx', 'test/expected-docx');
43+
done();
44+
});
45+
});
46+
3347
it('should be able to process 20 thousand files', function(done){
3448
var many = 20000;
3549
this.timeout(0);

0 commit comments

Comments
 (0)
Please sign in to comment.