fix #1261 use numeric ids with bookmarkStart and bookmarkEnd to conform to schema

This commit is contained in:
Tom Hunkapiller
2021-10-26 20:09:38 -05:00
parent f34d4833a8
commit 54565e2228
4 changed files with 44 additions and 9 deletions

View File

@ -22,6 +22,9 @@ describe("Paragraph", () => {
stub(convenienceFunctions, "uniqueId").callsFake(() => {
return "test-unique-id";
});
stub(convenienceFunctions, "uniqueNumericId").callsFake(() => {
return -101;
});
});
after(() => {
@ -716,7 +719,7 @@ describe("Paragraph", () => {
{
"w:bookmarkStart": {
_attr: {
"w:id": "test-unique-id",
"w:id": -101,
"w:name": "test-id",
},
},
@ -738,7 +741,7 @@ describe("Paragraph", () => {
{
"w:bookmarkEnd": {
_attr: {
"w:id": "test-unique-id",
"w:id": -101,
},
},
},