2018-01-31 23:24:55 +00:00
|
|
|
// tslint:disable:no-string-literal
|
2023-06-05 00:33:43 +01:00
|
|
|
import { describe, expect, it } from "vitest";
|
2018-01-31 23:24:55 +00:00
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
2018-10-26 01:04:07 +01:00
|
|
|
|
2018-01-31 23:24:55 +00:00
|
|
|
import { Relationships } from "./relationships";
|
|
|
|
|
|
|
|
describe("Relationships", () => {
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create section properties with options", () => {
|
|
|
|
const properties = new Relationships();
|
|
|
|
const tree = new Formatter().format(properties);
|
|
|
|
expect(Object.keys(tree)).to.deep.equal(["Relationships"]);
|
2019-04-09 05:27:18 -04:00
|
|
|
expect(tree["Relationships"]).to.deep.equal({
|
2018-01-31 23:24:55 +00:00
|
|
|
_attr: { xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|