diff --git a/src/file/document/body/section-properties/properties/column.ts b/src/file/document/body/section-properties/properties/column.ts index 943723a6f3..d1f48a7aa5 100644 --- a/src/file/document/body/section-properties/properties/column.ts +++ b/src/file/document/body/section-properties/properties/column.ts @@ -8,19 +8,19 @@ export interface IColumnAttributes { export class ColumnAttributes extends XmlAttributeComponent { protected readonly xmlKeys = { - width: 'w:w', - space: 'w:space', - } + width: "w:w", + space: "w:space", + }; } export class Column extends XmlComponent { - constructor({width, space}: IColumnAttributes) { + constructor({ width, space }: IColumnAttributes) { super("w:col"); this.root.push( new ColumnAttributes({ width: twipsMeasureValue(width), space: space === undefined ? undefined : twipsMeasureValue(space), - }) - ) + }), + ); } } diff --git a/src/file/document/body/section-properties/properties/columns.spec.ts b/src/file/document/body/section-properties/properties/columns.spec.ts index 694d917e6e..596b30bdb1 100644 --- a/src/file/document/body/section-properties/properties/columns.spec.ts +++ b/src/file/document/body/section-properties/properties/columns.spec.ts @@ -1,7 +1,8 @@ import { expect } from "chai"; -import { Columns } from "."; + import { Formatter } from "export/formatter"; -import { Column } from "./column"; + +import { Column, Columns } from "."; describe("Columns", () => { describe("#constructor()", () => {