From bac8ead5243e1165c47e52881da5c69d562dfadf Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 20 Aug 2014 10:39:38 +0100 Subject: Rename bom.docx to utf8-bom.docx --- tests/mammoth.tests.js | 2 +- tests/test-data/bom.docx | Bin 2836 -> 0 bytes tests/test-data/utf8-bom.docx | Bin 0 -> 2836 bytes 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 tests/test-data/bom.docx create mode 100644 tests/test-data/utf8-bom.docx diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 9be7006..32bc281 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -33,7 +33,7 @@ describe('mammoth', function() { }); test('should read docx xml files with unicode byte order mark', function() { - var docxPath = path.join(__dirname, "test-data/bom.docx"); + var docxPath = path.join(__dirname, "test-data/utf8-bom.docx"); return mammoth.convertToHtml({path: docxPath}).then(function (result) { assert.equal(result.value, "

This XML has a byte order mark.

"); assert.deepEqual(result.messages, []); diff --git a/tests/test-data/bom.docx b/tests/test-data/bom.docx deleted file mode 100644 index 3881238..0000000 Binary files a/tests/test-data/bom.docx and /dev/null differ diff --git a/tests/test-data/utf8-bom.docx b/tests/test-data/utf8-bom.docx new file mode 100644 index 0000000..3881238 Binary files /dev/null and b/tests/test-data/utf8-bom.docx differ -- cgit v1.2.3