diff options
Diffstat (limited to 'tests/docx/content-types-reader.tests.js')
| -rw-r--r-- | tests/docx/content-types-reader.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/docx/content-types-reader.tests.js b/tests/docx/content-types-reader.tests.js index 3390e43..a223d09 100644 --- a/tests/docx/content-types-reader.tests.js +++ b/tests/docx/content-types-reader.tests.js @@ -37,4 +37,11 @@ describe('readContentTypesFromXml', function() { assert.equal(contentTypes.findContentType("word/media/hat.tif"), "image/tiff"); assert.equal(contentTypes.findContentType("word/media/hat.tiff"), "image/tiff"); }); + + test('fallback content types are case insensitive on extension', function() { + var contentTypes = readContentTypesFromXml({ + root: new XmlElement("content-types:Types", {}, []) + }); + assert.equal(contentTypes.findContentType("word/media/hat.PnG"), "image/png"); + }); }); |
