From 2550dfe6a8cd777a6c21ce8ae6c0a99b7f26aced Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 6 Jul 2014 17:52:24 +0100 Subject: Add extractRawText function --- tests/mammoth.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index cba59ea..11f4fc6 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -138,4 +138,11 @@ describe('mammoth', function() { ); } }); + + test('extractRawText only retains raw text', function() { + var docxPath = path.join(__dirname, "test-data/simple-list.docx"); + return mammoth.extractRawText({path: docxPath}).then(function(result) { + assert.equal(result.value, 'Apple\n\nBanana\n\n'); + }); + }); }) -- cgit v1.2.3