Fix lint and style errors

This commit is contained in:
askoufis
2021-09-18 23:14:13 +10:00
parent 3a795401d1
commit eec084767f
2 changed files with 9 additions and 8 deletions

View File

@ -8,9 +8,9 @@ export interface IColumnAttributes {
export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> { export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> {
protected readonly xmlKeys = { protected readonly xmlKeys = {
width: 'w:w', width: "w:w",
space: 'w:space', space: "w:space",
} };
} }
export class Column extends XmlComponent { export class Column extends XmlComponent {
@ -20,7 +20,7 @@ export class Column extends XmlComponent {
new ColumnAttributes({ new ColumnAttributes({
width: twipsMeasureValue(width), width: twipsMeasureValue(width),
space: space === undefined ? undefined : twipsMeasureValue(space), space: space === undefined ? undefined : twipsMeasureValue(space),
}) }),
) );
} }
} }

View File

@ -1,7 +1,8 @@
import { expect } from "chai"; import { expect } from "chai";
import { Columns } from ".";
import { Formatter } from "export/formatter"; import { Formatter } from "export/formatter";
import { Column } from "./column";
import { Column, Columns } from ".";
describe("Columns", () => { describe("Columns", () => {
describe("#constructor()", () => { describe("#constructor()", () => {