fix hyperlink id

This commit is contained in:
Nicolas Rotier
2019-11-08 10:50:18 +01:00
parent 9495f30e2d
commit 3427d220c7
5 changed files with 11 additions and 9 deletions

View File

@ -8,7 +8,7 @@ describe("Hyperlink", () => {
let hyperlink: Hyperlink;
beforeEach(() => {
hyperlink = new Hyperlink("https://example.com", 0);
hyperlink = new Hyperlink("https://example.com", 'superid');
});
describe("#constructor()", () => {
@ -19,7 +19,7 @@ describe("Hyperlink", () => {
{
_attr: {
"w:history": 1,
"r:id": "rId1",
"r:id": "rIdsuperid",
},
},
{
@ -34,7 +34,7 @@ describe("Hyperlink", () => {
describe("with optional anchor parameter", () => {
beforeEach(() => {
hyperlink = new Hyperlink("Anchor Text", 0, "anchor");
hyperlink = new Hyperlink("Anchor Text", 'superid2', "anchor");
});
it("should create an internal link with anchor tag", () => {