Re-name PageRef to PageReference

This commit is contained in:
Dolan Miu
2021-09-08 00:41:40 +01:00
parent 76e7f40bd2
commit ce2a949176
7 changed files with 20 additions and 20 deletions

View File

@ -1,12 +1,12 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { PageRef } from "./pageref";
import { PageReference } from "./pageref";
describe("PageRef", () => {
describe("PageReference", () => {
describe("#constructor()", () => {
it("should construct a pageref without options", () => {
const pageref = new PageRef("some_bookmark");
const pageref = new PageReference("some_bookmark");
const tree = new Formatter().format(pageref);
expect(tree).to.be.deep.equal({
"w:r": [
@ -40,8 +40,8 @@ describe("PageRef", () => {
});
it("should construct a pageref with all the options", () => {
const pageref = new PageRef("some_bookmark", { hyperlink: true, useRelativePosition: true });
const tree = new Formatter().format(pageref);
const pageReference = new PageReference("some_bookmark", { hyperlink: true, useRelativePosition: true });
const tree = new Formatter().format(pageReference);
expect(tree).to.be.deep.equal({
"w:r": [
{