aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mammoth.tests.js7
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');
+ });
+ });
})