aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-04-22 19:02:00 +0100
committerMichael Williamson <mike@zwobble.org>2014-04-22 19:02:00 +0100
commit6bb08960ce155202049ab505cb456b740462a974 (patch)
treecb8d78d5febf95cb55f05e69f5dfcba0819f635c /tests
parented8fdc9e31d6c60529bf6c8c6bd1bd81b1ca6153 (diff)
Include style ID in warning
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js
index b6e3254..b9a8476 100644
--- a/tests/document-to-html.tests.js
+++ b/tests/document-to-html.tests.js
@@ -100,7 +100,7 @@ describe('DocumentConverter', function() {
]);
var converter = new DocumentConverter();
return converter.convertToHtml(document).then(function(result) {
- assert.deepEqual(result.messages, [results.warning("Unrecognised paragraph style: 'Heading 1'")]);
+ assert.deepEqual(result.messages, [results.warning("Unrecognised paragraph style: 'Heading 1' (Style ID: Heading1)")]);
});
});
@@ -174,7 +174,7 @@ describe('DocumentConverter', function() {
var run = runOfText("Hello.", {styleId: "Heading1Char", styleName: "Heading 1 Char"});
var converter = new DocumentConverter();
return converter.convertToHtml(run).then(function(result) {
- assert.deepEqual(result.messages, [results.warning("Unrecognised run style: 'Heading 1 Char'")]);
+ assert.deepEqual(result.messages, [results.warning("Unrecognised run style: 'Heading 1 Char' (Style ID: Heading1Char)")]);
});
});