Use actual docx for testing single paragraph docx

This commit is contained in:
Michael Williamson 2013-04-11 19:59:52 +01:00
parent 9fdb851306
commit 57622e1584
2 changed files with 3 additions and 5 deletions

View File

@ -12,12 +12,10 @@ var createFakeDocxFile = testing.createFakeDocxFile;
describe('mammoth', function() {
test('should convert docx containing one one paragraph to single p element', function() {
var docxFile = createFakeDocxFile({
"word/document.xml": testData("simple/word/document.xml")
});
var docxPath = path.join(__dirname, "test-data/single-paragraph.docx");
var converter = new mammoth.Converter();
return converter.convertToHtml(docxFile).then(function(result) {
assert.equal("<p>Hello.</p>", result.html);
return converter.convertToHtml(docxPath).then(function(result) {
assert.equal("<p>Walking on imported air</p>", result.html);
});
});

Binary file not shown.