diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-06 17:52:24 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-06 17:52:24 +0100 |
| commit | 2550dfe6a8cd777a6c21ce8ae6c0a99b7f26aced (patch) | |
| tree | c24ce9e95b38de9505d246f37cdb4e6f5fc386f2 /tests | |
| parent | def56988014ad3654185261ebb1bf4208cc3b6d8 (diff) | |
Add extractRawText function
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mammoth.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
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'); + }); + }); }) |
