diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-02 17:14:31 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-02 17:14:31 +0100 |
| commit | 6a4cc9231f219c0047272c56081f881eab800d74 (patch) | |
| tree | a9631dfa47eb3db6a7060255e8b3042f3255756f /tests/mammoth.tests.js | |
| parent | 3afd698984f9ec3fcb9b16e5d6c12ea4a23dfb53 (diff) | |
Rename images.inline to images.imgElement
Diffstat (limited to 'tests/mammoth.tests.js')
| -rw-r--r-- | tests/mammoth.tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 9d057f6..801bb02 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -174,7 +174,7 @@ describe('mammoth', function() { test('src of inline images can be changed', function() { var docxPath = path.join(__dirname, "test-data/tiny-picture.docx"); - var convertImage = mammoth.images.inline(function(element) { + var convertImage = mammoth.images.imgElement(function(element) { return element.read("base64").then(function(encodedImage) { return {src: encodedImage.substring(0, 2) + "," + element.contentType}; }); |
